企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
``` 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") } } ```