Skip to content

Instantly share code, notes, and snippets.

@adriacidre
Created June 4, 2020 08:57
Show Gist options
  • Save adriacidre/a3ba77ddc6f784e374f4d503239467c2 to your computer and use it in GitHub Desktop.
Save adriacidre/a3ba77ddc6f784e374f4d503239467c2 to your computer and use it in GitHub Desktop.
jcart, _ := json.Marshal(cart)
fmt.Println(string(jcart))
// {"account_number":1,"fruits":["apple","peach","pear"]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment