Slide 35
Slide 35 text
package main
import (
"fmt"
"net/http"
)
func handler(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "GoCon 2018 Spring")
}
func main() {
http.HandleFunc("/", handler)
http.ListenAndServe(":8888", nil)
}
Using simple http app