main.go
1package main
2
3import "net/http"
4
5func main() {
6 http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
7 w.Write([]byte("Hello World"))
8 })
9 http.ListenAndServe(":8080", nil)
10}

Compiling Code

Building your application...