摘要:
Problem: You want to process HTTP requests and send back HTTP responses. Solution: Use http.Request to extract information on HTTP requests and http.R
阅读全文
posted @ 2023-10-16 22:31
ZhangZhihuiAAA
阅读(25)
推荐(0)
摘要:
Problem: You want to create a simple web application that responds to an HTTP request and sends back an HTTP response. Solution: Use the net/http pack
阅读全文
posted @ 2023-10-16 20:15
ZhangZhihuiAAA
阅读(19)
推荐(0)
摘要:
Problem: You want to create a UDP client to send data to a UDP server. Solution: Use the Dial function in the net package to connect to a UDP server.
阅读全文
posted @ 2023-10-16 19:47
ZhangZhihuiAAA
阅读(20)
推荐(0)
摘要:
Problem: You want to create a UDP server to receive data from a UDP client. Solution: Use the ListenPacket function in the net package to listen for i
阅读全文
posted @ 2023-10-16 19:29
ZhangZhihuiAAA
阅读(44)
推荐(0)
摘要:
Problem: You want to create a TCP client to send data to a TCP server. Solution: Use the Dial function in the net package to connect to a TCP server.
阅读全文
posted @ 2023-10-16 14:31
ZhangZhihuiAAA
阅读(17)
推荐(0)
摘要:
Problem: You want to create a TCP server to receive data from a TCP client. Solution: Use the Listen function in the net package to listen for connect
阅读全文
posted @ 2023-10-16 11:06
ZhangZhihuiAAA
阅读(20)
推荐(0)
摘要:
Computer networks use network protocols to communicate with each other. Network protocols are often abstracted into different layers. For example, Ope
阅读全文
posted @ 2023-10-16 10:18
ZhangZhihuiAAA
阅读(30)
推荐(0)
摘要:
Problem: You want to resize an image, making it larger or smaller. Solution: Convert an image to a grid of pixels as the source and create a new image
阅读全文
posted @ 2023-10-10 15:53
ZhangZhihuiAAA
阅读(14)
推荐(0)
摘要:
Problem: You want to convert the image to grayscale. Solution: Convert an image to a grid of pixels. Take each pixel in the grid and convert it to a g
阅读全文
posted @ 2023-10-10 15:47
ZhangZhihuiAAA
阅读(30)
推荐(0)
摘要:
Problem: You want to flip an image upside down. Solution: Convert an image to a grid of pixels. Swap the positions of the top and bottom pairs of pixe
阅读全文
posted @ 2023-10-10 11:28
ZhangZhihuiAAA
阅读(12)
推荐(0)