Skip to content

Instantly share code, notes, and snippets.

@paulja
Created November 17, 2016 17:32
Show Gist options
  • Save paulja/64880df0473f607952a6ceb44c3e9952 to your computer and use it in GitHub Desktop.
Save paulja/64880df0473f607952a6ceb44c3e9952 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"net/http"
"log"
)
func main() {
http.HandleFunc("/", func (w http.ResponseWriter, req *http.Request) {
fmt.Fprint(w, "Hello World")
})
log.Fatal(http.ListenAndServe(":8080", nil))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment