package main import ( "fmt" "log" "net/http" ) func handler(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "IRC: irc.hacking.allowed.org:6667/6697\n") fmt.Fprintf(w, "Hi there mister %s\n", r.URL.Path[1:]) fmt.Fprintf(w, ` 27/4/2019 Give me a webserver! What if I dont have one? 24/3/2019 People comes and people goes But we stay hey ho This happend ... maybe new epoch is comming ... FreeArtMan `) } func main() { fmt.Println("Start server") http.HandleFunc("/",handler) log.Fatal(http.ListenAndServe(":12345", nil)) }