Last active
March 2, 2022 03:37
-
-
Save sang-w0o/d032fdc623781339a485bb8ac18808de to your computer and use it in GitHub Desktop.
grpc_gateway_5.go
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
type ServeMux struct { | |
// handlers maps HTTP method to a list of handlers. | |
handlers map[string][]handler | |
//.. | |
} | |
type handler struct { | |
pat Pattern | |
h HandlerFunc | |
} | |
type HandlerFunc func(w http.ResponseWriter, r *http.Request, pathParams map[string]string) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment