Skip to content

Instantly share code, notes, and snippets.

@PumpkinSeed
Created October 10, 2019 14:36
Show Gist options
  • Save PumpkinSeed/efb9400f34827cbea05707b93df46c37 to your computer and use it in GitHub Desktop.
Save PumpkinSeed/efb9400f34827cbea05707b93df46c37 to your computer and use it in GitHub Desktop.
Example data structure for blog post
type webshop struct {
Token string `json:"token"`
...
PaymentTransactionID string `json:"payment_transaction_id"`
Product *product `json:"product" cb_referenced:"product"`
Store *store `json:"store,omitempty" cb_referenced:"store"`
}
type product struct {
ID string `json:"id"`
....
Status string `json:"status" cb_indexable:"true"`
}
type store struct {
ID string `json:"id"`
...
Description string `json:"description"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment