Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type Gopher struct {
- Name string `json:"name"`
- Sleep time.Duration `json:"sleep"`
- Eat int `json:"eat"`
- }
- type Farm struct {
- Gophers []Gopher `json:"gophers"`
- TotalFood int `json:"totalFood"`
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement