package main import ( "fmt" "log" "net/http" "strings" "time" ) func main() { http.HandleFunc("/", slash) http.HandleFunc("/ok", ok) http.HandleFunc("/info", info) http.HandleFunc("/status", status) err := http.ListenAndServe("localhost:0808", nil) if err != nil { log.Fatal("ListenAndServe: ", err) } } func slash (w http.ResponseWriter,r *http.Request) { fmt.Fprint(w,"it alive") } func ok (w http.ResponseWriter,r *http.Request) { w.WriteHeader(http.StatusOK) fmt.Fprint(w,"http status ok ") } func info (w http.ResponseWriter,r *http.Request) { fmt.Fprint(w,"LI Vladislave♂") }