Kevin Noone


Hello Web Go

March 14, 2019

This is the most basic web server written in Go.

package main

import (
	"fmt"
	"net/http"
)

func main() {
	http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
		fmt.Fprintf(w, "Hello World!")
	})
	http.ListenAndServe(":80", nil)
}


© 2021 Kevin Noone · Powered by Hugo and GitHub Pages