0
Golang sever tutorial #1
Golang sever tutorial #1
A simple server in golang.
package main
import (
"fmt"
"net/http"
)
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Here is my golang server....")
})
http.ListenAndServe(":8080", nil)
}