githubConfigRouter() — gin Function Reference
Architecture documentation for the githubConfigRouter() function in githubapi_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 43338ce5_d06e_fbce_2d37_1f1a2f6d4d98["githubConfigRouter()"] 851931d7_59a3_9c02_f8d4_6771ae5af6e6["githubapi_test.go"] 43338ce5_d06e_fbce_2d37_1f1a2f6d4d98 -->|defined in| 851931d7_59a3_9c02_f8d4_6771ae5af6e6 cf0ceb9e_7c84_7ee1_cfb9_5fecff9574b3["TestGithubAPI()"] cf0ceb9e_7c84_7ee1_cfb9_5fecff9574b3 -->|calls| 43338ce5_d06e_fbce_2d37_1f1a2f6d4d98 24111e9b_7282_46ab_e673_ebee6a059f71["BenchmarkGithub()"] 24111e9b_7282_46ab_e673_ebee6a059f71 -->|calls| 43338ce5_d06e_fbce_2d37_1f1a2f6d4d98 3d836e4c_214b_d1cc_35a8_2a94d8a57722["BenchmarkParallelGithub()"] 3d836e4c_214b_d1cc_35a8_2a94d8a57722 -->|calls| 43338ce5_d06e_fbce_2d37_1f1a2f6d4d98 56251959_a232_8ca1_e8ff_afda13eb8485["BenchmarkParallelGithubDefault()"] 56251959_a232_8ca1_e8ff_afda13eb8485 -->|calls| 43338ce5_d06e_fbce_2d37_1f1a2f6d4d98 style 43338ce5_d06e_fbce_2d37_1f1a2f6d4d98 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
githubapi_test.go lines 374–385
func githubConfigRouter(router *Engine) {
for _, route := range githubAPI {
router.Handle(route.method, route.path, func(c *Context) {
output := make(map[string]string, len(c.Params)+1)
output["status"] = "good"
for _, param := range c.Params {
output[param.Key] = param.Value
}
c.JSON(http.StatusOK, output)
})
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does githubConfigRouter() do?
githubConfigRouter() is a function in the gin codebase, defined in githubapi_test.go.
Where is githubConfigRouter() defined?
githubConfigRouter() is defined in githubapi_test.go at line 374.
What calls githubConfigRouter()?
githubConfigRouter() is called by 4 function(s): BenchmarkGithub, BenchmarkParallelGithub, BenchmarkParallelGithubDefault, TestGithubAPI.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free