多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
``` package main import ( "fmt" "net/http" ) func Hello(writer http.ResponseWriter, request *http.Request) { fmt.Fprint(writer, "hello...") } func main() { http.HandleFunc("/", Hello) err := http.ListenAndServe("0.0.0.0:8080", nil) if err != nil { fmt.Println("http start fail") } } ```