Skip to content

Instantly share code, notes, and snippets.

@julian-klode
Created January 30, 2017 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save julian-klode/a7d54de3185cb7361949146ddd91bdc3 to your computer and use it in GitHub Desktop.
Save julian-klode/a7d54de3185cb7361949146ddd91bdc3 to your computer and use it in GitHub Desktop.
package main
type Link struct {
Href string `json:"href"`
}
type Links struct {
First Link `json:"first"`
Last Link `json:"last"`
Next Link `json:"next"`
Self Link `json:"self"`
}
type Item struct {
_links Links `json:"_links"`
Annotations []interface{} `json:"annotations"`
CreatedAt string `json:"created_at"`
DomainName string `json:"domain_name"`
ID int `json:"id"`
IsArchived int `json:"is_archived"`
IsStarred int `json:"is_starred"`
Mimetype string `json:"mimetype"`
ReadingTime int `json:"reading_time"`
Tags []interface{} `json:"tags"`
UpdatedAt string `json:"updated_at"`
UserEmail string `json:"user_email"`
UserID int `json:"user_id"`
UserName string `json:"user_name"`
}
type Embedded struct {
Items []Item `json:"items"`
}
type MyJsonName struct {
_embedded Embedded `json:"_embedded"`
links Links `json:"_links"`
Limit int `json:"limit"`
Page int `json:"page"`
Pages int `json:"pages"`
Total int `json:"total"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment