Skip to content

Instantly share code, notes, and snippets.

@kaneshin
Created December 24, 2016 06:13
Show Gist options
  • Save kaneshin/73c377221f7a649b7bf949c64a3f5b33 to your computer and use it in GitHub Desktop.
Save kaneshin/73c377221f7a649b7bf949c64a3f5b33 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(":8080", nil))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment