main.go
1
package main
2
3
import "net/http"
4
5
func 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...