diff --git a/client.go b/client.go index dc79b8f..bdffb3f 100644 --- a/client.go +++ b/client.go @@ -13,12 +13,12 @@ import ( // Package errors var ( - ErrHttpRequest = errors.New("point-api: HTTP request error") + ErrHttpRequest = errors.New("point-api: HTTP request error") ErrJsonDeserialization = errors.New("point-api: JSON deserialization error") - ErrNotAuthorized = errors.New("point-api: Not authorized") - ErrAuthNeeded = errors.New("point-api: Authentication needed") - ErrNoNextPage = errors.New("point-api: Page has next_page: false") - ErrAuthorPrivacy = errors.New("point-api: Post author privacy error") + ErrNotAuthorized = errors.New("point-api: Not authorized") + ErrAuthNeeded = errors.New("point-api: Authentication needed") + ErrNoNextPage = errors.New("point-api: Page has next_page: false") + ErrAuthorPrivacy = errors.New("point-api: Post author privacy error") ) type PointClient struct { diff --git a/meta_post.go b/meta_post.go index b0abbf6..4ef8aa4 100644 --- a/meta_post.go +++ b/meta_post.go @@ -2,10 +2,10 @@ package point // MetaPost represents the meta-post object in API response. It contains the post object and some user dependent data type MetaPost struct { - Bookmarked bool `json:"bookmarked"` - Uid int `json:"uid"` - Subscribed bool `json:"subscribed"` - Editable bool `json:"editable"` - Recommended bool `json:"recommended"` - Post Post `json:"post"` + Bookmarked bool `json:"bookmarked"` + Uid int `json:"uid"` + Subscribed bool `json:"subscribed"` + Editable bool `json:"editable"` + Recommended bool `json:"recommended"` + Post Post `json:"post"` }