Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aurora-develop/Duck2api
/ init
Function
init
api/router.go:11–14 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
9
var
router *gin.Engine
10
11
func
init() {
12
// 初始化gin
13
router = initialize.RegisterRouter()
14
}
15
16
func
Listen(w http.ResponseWriter, r *http.Request) {
17
router.ServeHTTP(w, r)
Callers
nothing calls this directly
Calls
1
RegisterRouter
Function · 0.92
Tested by
no test coverage detected