Skip to content

Instantly share code, notes, and snippets.

@elliotforbes
Created July 3, 2018 20:43
Show Gist options
  • Save elliotforbes/60115823fa12151788a22be2d53b4760 to your computer and use it in GitHub Desktop.
Save elliotforbes/60115823fa12151788a22be2d53b4760 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"log"
"net/http"
)
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hello World")
})
log.Fatal(http.ListenAndServe(":80", nil))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment