Created
January 30, 2017 14:38
-
-
Save julian-klode/a7d54de3185cb7361949146ddd91bdc3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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