MCPcopy 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

9var router *gin.Engine
10
11func init() {
12 // 初始化gin
13 router = initialize.RegisterRouter()
14}
15
16func Listen(w http.ResponseWriter, r *http.Request) {
17 router.ServeHTTP(w, r)

Callers

nothing calls this directly

Calls 1

RegisterRouterFunction · 0.92

Tested by

no test coverage detected