合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
``` 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") } } ```