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)
}

Tony BB
 

TonyBB is a Coach , marketer, hypnotist and a founder of RSKVF Production who specializes in providing simple, affordable, and easy to use solutions for Life.

Click Here to Leave a Comment Below 0 comments

Leave a Reply: