Skip to content

Instantly share code, notes, and snippets.

@ergoz
Forked from yvasiyarov/gist:8ba8dde41807b4b72cd9
Last active August 29, 2015 14:06
Show Gist options
  • Save ergoz/8f25e3b599e6e875bff0 to your computer and use it in GitHub Desktop.
Save ergoz/8f25e3b599e6e875bff0 to your computer and use it in GitHub Desktop.
package main
import (
"net/http"
)
func handler(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("Hello world"))
}
func main() {
http.HandleFunc("/", handler)
http.ListenAndServe(":8080", nil)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment