Skip to content

Instantly share code, notes, and snippets.

@wallrat
Created January 11, 2017 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wallrat/dd38374f9575041846d95b8a72b56b91 to your computer and use it in GitHub Desktop.
Save wallrat/dd38374f9575041846d95b8a72b56b91 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(":8081", nil))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment