Essential Go Middleware  Edit on GitHub      File Issue

Normal Handler Function

func loginHandler(w http.ResponseWriter, r *http.Request) {
            // Steps to login
}

func main() {
    http.HandleFunc("/login", loginHandler)
    http.ListenAndServe(":8080", nil)
}
  ↑ ↓ to navigate     ↵ to select     Esc to close