go语言web服务器端的hello world
package main //导入包名 import ( "fmt" //格式化包 "net/http" //网络包 ) //处理函数 func handle(w http.ResponseWriter, r *http.Request) { fmt.Fprint(w, "学C又学GO,顿顿都有肉") } func main() { http.HandleFunc("/", handle) //路由解析 http.ListenAndServe(":8888", nil) //监听端口 }