fp/packages/helloworld/main.go

13 lines
232 B
Go
Raw Normal View History

2024-03-29 07:28:02 +00:00
package main
import "net/http"
func main() {
http.HandleFunc("/", hellowordhandler)
http.ListenAndServe(":9000", nil)
}
func hellowordhandler(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("Hello World"))
}