🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
``` 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") } } ```