Created
October 6, 2023 18:31
-
-
Save j1cs/cfc587bd1e92ffa05f9eaa5c052768e1 to your computer and use it in GitHub Desktop.
chi walk
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
chi.Walk(r, func(method string, route string, handler http.Handler, middlewares ...func(http.Handler) http.Handler) error { | |
fmt.Printf("[%s]: '%s' has %d middlewares\n", method, route, len(middlewares)) | |
return nil | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment