Created
November 30, 2018 16:36
-
-
Save Bebbolus/c095a8b187ef560b94ef29a4d8bc8665 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var chain []middleware //empty chain | |
func main() { | |
chain = append(chain, pass("GET|POST")) | |
http.HandleFunc("/", Chain(controller, chain...)) | |
log.Fatal(http.ListenAndServe(":8080", nil)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment