Last active
May 28, 2016 02:57
-
-
Save kpurdon/629041aa608e774f55b13945a920fed9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// GetTestHandler returns a http.HandlerFunc for testing http middleware | |
func GetTestHandler() http.HandlerFunc { | |
fn := func(rw http.ResponseWriter, req *http.Request) { | |
panic("test entered test handler, this should not happen") | |
} | |
return http.HandlerFunc(fn) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment