MCPcopy Index your code
hub / github.com/oapi-codegen/oapi-codegen / main

Function main

examples/petstore-expanded/gin/petstore.go:49–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47}
48
49func main() {
50 port := flag.String("port", "8080", "Port for test HTTP server")
51 flag.Parse()
52 // Create an instance of our handler which satisfies the generated interface
53 petStore := api.NewPetStore()
54 s := NewGinPetServer(petStore, *port)
55 // And we serve HTTP until the world ends.
56 log.Fatal(s.ListenAndServe())
57}

Callers

nothing calls this directly

Calls 3

NewPetStoreFunction · 0.92
NewGinPetServerFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…