Golang的http服务器代码 package main import ( //fmt net/http ) func main() { http.HandleFunc(/, func(w http.ResponseWriter, r *http.Request) { w.Write([]byte(你好世界,我是golang)) }) http.ListenAndServe(192.168.0.106:8080, nil) } 启动代码 go run web.go Swoole的http服务器代码 set([