()
| 32 | } |
| 33 | |
| 34 | func 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. |
no outgoing calls
searching dependent graphs…