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 !=