Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/260721735/ginRouteAutoRegister
/ NewHelloController
Function
NewHelloController
demo/controller/hello_controller.go:11–13 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
9
}
10
11
func
NewHelloController() *HelloController {
12
return
&HelloController{}
13
}
14
func
(controller *HelloController) GetTest(c *gin.Context) {
15
c.JSON(http.StatusOK, gin.H{
16
"code"
: 0,
Callers
1
Route
Function · 0.92
Calls
no outgoing calls
Tested by
no test coverage detected