()
| 33 | } |
| 34 | |
| 35 | func 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. |
no outgoing calls