package main import ( "fmt" "net/http" ) func main() { http.HandleFunc("/", func(resp http.ResponseWriter, req *http.Request) { fmt.Println("test") }) http.ListenAndServe(":7890", nil) }