Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Hello world - plain net/http
package main
import (
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
You can’t perform that action at this time.