Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
You can’t perform that action at this time.