go fmt.
This commit is contained in:
parent
ae0722ce09
commit
b1379b99fc
10
client.go
10
client.go
|
@ -13,12 +13,12 @@ import (
|
||||||
|
|
||||||
// Package errors
|
// Package errors
|
||||||
var (
|
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")
|
ErrJsonDeserialization = errors.New("point-api: JSON deserialization error")
|
||||||
ErrNotAuthorized = errors.New("point-api: Not authorized")
|
ErrNotAuthorized = errors.New("point-api: Not authorized")
|
||||||
ErrAuthNeeded = errors.New("point-api: Authentication needed")
|
ErrAuthNeeded = errors.New("point-api: Authentication needed")
|
||||||
ErrNoNextPage = errors.New("point-api: Page has next_page: false")
|
ErrNoNextPage = errors.New("point-api: Page has next_page: false")
|
||||||
ErrAuthorPrivacy = errors.New("point-api: Post author privacy error")
|
ErrAuthorPrivacy = errors.New("point-api: Post author privacy error")
|
||||||
)
|
)
|
||||||
|
|
||||||
type PointClient struct {
|
type PointClient struct {
|
||||||
|
|
12
meta_post.go
12
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
|
// MetaPost represents the meta-post object in API response. It contains the post object and some user dependent data
|
||||||
type MetaPost struct {
|
type MetaPost struct {
|
||||||
Bookmarked bool `json:"bookmarked"`
|
Bookmarked bool `json:"bookmarked"`
|
||||||
Uid int `json:"uid"`
|
Uid int `json:"uid"`
|
||||||
Subscribed bool `json:"subscribed"`
|
Subscribed bool `json:"subscribed"`
|
||||||
Editable bool `json:"editable"`
|
Editable bool `json:"editable"`
|
||||||
Recommended bool `json:"recommended"`
|
Recommended bool `json:"recommended"`
|
||||||
Post Post `json:"post"`
|
Post Post `json:"post"`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue