mirror of
https://bitbucket.org/skobkin/point-api-go.git
synced 2025-02-09 23:35:00 +00:00
go fmt.
This commit is contained in:
parent
ae0722ce09
commit
b1379b99fc
10
client.go
10
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 {
|
||||
|
|
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
|
||||
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"`
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue