Skip to content

Instantly share code, notes, and snippets.

@adriacidre
Last active June 4, 2020 08:43
Show Gist options
  • Save adriacidre/f47ae589ad1c5f3a4d191aeec8b4b081 to your computer and use it in GitHub Desktop.
Save adriacidre/f47ae589ad1c5f3a4d191aeec8b4b081 to your computer and use it in GitHub Desktop.
Cart example
type Cart struct {
Account int `json:"account_number"`
Fruits []string `json:"fruits"`
}
cart := &Cart{
Account: 1,
Fruits: []string{"apple", "peach", "pear"}}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment