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

Function NewPetStore

examples/petstore-expanded/gin/api/petstore.go:34–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32}
33
34func NewPetStore() *PetStore {
35 return &PetStore{
36 Pets: make(map[int64]Pet),
37 NextId: 1000,
38 }
39}
40
41// sendPetStoreError wraps sending of an error in the Error format, and
42// handling the failure to marshal that.

Callers 2

mainFunction · 0.92
TestPetStoreFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestPetStoreFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…