MCPcopy Create free account
hub / github.com/oapi-codegen/oapi-codegen / main

Function main

examples/petstore-expanded/iris/petstore.go:41–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39}
40
41func main() {
42 port := flag.Int("port", 8080, "Port for test HTTP server")
43 flag.Parse()
44 // Create an instance of our handler which satisfies the generated interface
45 petStore := api.NewPetStore()
46 s := NewIrisPetServer(petStore, *port)
47
48 // And we serve HTTP until the world ends.
49 log.Fatal(s.Listen(fmt.Sprintf("localhost:%d", *port)))
50}

Callers

nothing calls this directly

Calls 2

NewPetStoreFunction · 0.92
NewIrisPetServerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…