Skip to content

Instantly share code, notes, and snippets.

@wejick
Created June 3, 2017 19:07
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 wejick/2cef1f8799361318a62a59f6801eade8 to your computer and use it in GitHub Desktop.
Save wejick/2cef1f8799361318a62a59f6801eade8 to your computer and use it in GitHub Desktop.
simple web server
package main
import "net/http"
func main() {
http.HandleFunc("/", handler)
http.HandleFunc("/test", handler)
http.ListenAndServe(":8080", nil)
}
func handler(w http.ResponseWriter, r *http.Request) {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment