MCPcopy Create free account
hub / github.com/vercel/examples / main

Function main

go/api/cmd/server/main.go:11–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9)
10
11func main() {
12 mux := http.NewServeMux()
13
14 h := handler.New(starter.StaticFiles)
15 h.RegisterRoutes(mux)
16
17 port := os.Getenv("PORT")
18 if port == "" {
19 port = "3000"
20 }
21
22 http.ListenAndServe(":"+port, mux)
23}

Callers

nothing calls this directly

Calls 1

RegisterRoutesMethod · 0.80

Tested by

no test coverage detected