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

Function NewPetStore

examples/petstore-expanded/echo/api/petstore.go:35–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 2

mainFunction · 0.92
TestPetStoreFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestPetStoreFunction · 0.74