MCPcopy Index your code
hub / github.com/SMNETSTUDIO/You2API / main

Function main

start.go:11–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9)
10
11func main() {
12 // 将 /api/main.go 的 Handler 函数注册到根路径
13 http.HandleFunc("/", api.Handler)
14
15 port := ":8080"
16 fmt.Printf("Server is running on http://localhost%s\n", port)
17
18 // 启动服务器
19 if err := http.ListenAndServe(port, nil); err != nil {
20 log.Fatal("Server error: ", err)
21 }
22}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected