Go web基本应用
helojcy
18
0
PDF
2021-01-31 09:01:04
1、net.http 第一个版本 package main import ( io log net/http ) func main() { // 设置路由 http.HandleFunc(/, func(writer http.ResponseWriter, request *http.Request) { io.WriteString(writer, hello world! this is http test demo01) }) err := http.ListenAndServe(:8080, nil) if err !=
暂无评论