ZhangZhihui's Blog  
上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 78 下一页

2023年10月17日

摘要: Problem: You want to use Go’s templating system to create a web application. Solution: Use the html/template package to create a web application. pack 阅读全文
posted @ 2023-10-17 21:49 ZhangZhihuiAAA 阅读(4) 评论(0) 推荐(0) 编辑
 
摘要: Problem: You want to serve your web application through HTTPS. Solution: Use the http.ListenAndServeTLS function to serve your web application through 阅读全文
posted @ 2023-10-17 21:23 ZhangZhihuiAAA 阅读(5) 评论(0) 推荐(0) 编辑
 
摘要: Problem: You want to create a simple web service API that returns JSON. Solution: Use the net/http package to create a web service API and the encodin 阅读全文
posted @ 2023-10-17 20:08 ZhangZhihuiAAA 阅读(6) 评论(0) 推荐(0) 编辑
 
摘要: Problem: You want to serve static files such as images, CSS, and JavaScript files. Solution: Use the http.FileServer function to serve static files. f 阅读全文
posted @ 2023-10-17 19:45 ZhangZhihuiAAA 阅读(6) 评论(0) 推荐(0) 编辑
 
摘要: Problem: You want to upload a file to a web application. Solution: Use the net/http package to create a web application and the io package to read the 阅读全文
posted @ 2023-10-17 15:00 ZhangZhihuiAAA 阅读(4) 评论(0) 推荐(0) 编辑
 
摘要: Problem: You want to process data submitted from HTML forms. Solution: Use the Form field of http.Request or the FormValue method to access the data s 阅读全文
posted @ 2023-10-17 14:50 ZhangZhihuiAAA 阅读(5) 评论(0) 推荐(0) 编辑

2023年10月16日

摘要: 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 阅读(9) 评论(0) 推荐(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 阅读(4) 评论(0) 推荐(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 阅读(4) 评论(0) 推荐(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 阅读(24) 评论(0) 推荐(0) 编辑
上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 78 下一页