Documentation
¶
Overview ¶
Package jsonstruct struct all flickr api json.
Index ¶
- type Auth
- type AuthGetFrob
- type AuthGetToken
- type Common
- type Content
- type Group
- type GroupsGetInfo
- type License
- type Location
- type PeopleFindBy
- type PeopleGetGroups
- type PeopleGroup
- type Photo
- type PhotoSize
- type PhotoSizes
- type Photos
- type PhotosGetInfo
- type PhotosLicenses
- type PhotosSearch
- type Photoset
- type PhotosetInfo
- type PhotosetsGetInfo
- type PhotosetsGetPhotos
- type Place
- type Tags
- type URL
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
Token Content `json:"token"`
Perms Content `json:"perms"`
User User `json:"user"`
}
Auth struct easyjson:json
func (Auth) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Auth) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Auth) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Auth) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type AuthGetFrob ¶
AuthGetFrob in flickr.auth.getfrob easyjson:json
func (AuthGetFrob) GetTokenURL ¶
func (auth AuthGetFrob) GetTokenURL(APIKey string, secretKey string) string
GetTokenURL to output link.
func (AuthGetFrob) MarshalEasyJSON ¶
func (v AuthGetFrob) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (AuthGetFrob) MarshalJSON ¶
func (v AuthGetFrob) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*AuthGetFrob) UnmarshalEasyJSON ¶
func (v *AuthGetFrob) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*AuthGetFrob) UnmarshalJSON ¶
func (v *AuthGetFrob) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type AuthGetToken ¶
AuthGetToken struct easyjson:json
func (AuthGetToken) MarshalEasyJSON ¶
func (v AuthGetToken) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (AuthGetToken) MarshalJSON ¶
func (v AuthGetToken) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*AuthGetToken) UnmarshalEasyJSON ¶
func (v *AuthGetToken) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*AuthGetToken) UnmarshalJSON ¶
func (v *AuthGetToken) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Common ¶
type Common struct {
Stat string `json:"stat"`
Code int64 `json:"code"`
Message string `json:"message"`
}
Common return format. easyjson:json
func (Common) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Common) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Common) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Common) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Content ¶
type Content struct {
Content string `json:"_content"`
}
Content common content easyjson:json
func (Content) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Content) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Content) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Content) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Group ¶
type Group struct {
ID string `json:"id"`
PathAlias string `json:"path_alias"`
IconServer string `json:"iconserver"`
Lang string `json:"lang"`
Ispoolmoderated int `json:"ispoolmoderated"`
IconFarm int `json:"iconfarm"`
Name Content `json:"name"`
Description Content `json:"description"`
Members Content `json:"members"`
Poolcount Content `json:"pool_count"`
Topiccount Content `json:"topic_count"`
Privacy Content `json:"privacy"`
Blast struct {
Content string `json:"_content"`
DateBlastAdded string `json:"date_blast_added"`
UserID string `json:"user_id"`
} `json:"blast"`
Throttle struct {
Count int64 `json:"count,string"`
Mode string `json:"mode"`
Remaining int64 `json:"remaining"`
} `json:"throttle"`
}
Group struct easyjson:json
func (Group) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Group) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Group) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Group) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type GroupsGetInfo ¶
GroupsGetInfo struct easyjson:json
func (GroupsGetInfo) MarshalEasyJSON ¶
func (v GroupsGetInfo) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GroupsGetInfo) MarshalJSON ¶
func (v GroupsGetInfo) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GroupsGetInfo) UnmarshalEasyJSON ¶
func (v *GroupsGetInfo) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GroupsGetInfo) UnmarshalJSON ¶
func (v *GroupsGetInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type License ¶
License struct easyjson:json
func (License) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (License) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*License) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*License) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Location ¶
type Location struct {
Latitude string `json:"latitude"`
Longitude string `json:"longitude"`
Accuracy string `json:"accuracy"`
Context string `json:"context"`
PlaceID string `json:"place_id"`
Woeid string `json:"woeid"`
Neighbourhood Place `json:"neighbourhood"`
Locality Place `json:"locality"`
County Place `json:"county"`
Region Place `json:"region"`
Country Place `json:"country"`
}
Location struct easyjson:json
func (Location) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Location) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Location) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Location) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type PeopleFindBy ¶
type PeopleFindBy struct {
User struct {
ID string `json:"id"`
Nsid string `json:"nsid"`
Username struct {
Content string `json:"_content"`
} `json:"username"`
} `json:"user"`
Stat string `json:"stat"`
Code int `json:"code"`
Message string `json:"message"`
}
PeopleFindBy struct easyjson:json
func (PeopleFindBy) MarshalEasyJSON ¶
func (v PeopleFindBy) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (PeopleFindBy) MarshalJSON ¶
func (v PeopleFindBy) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*PeopleFindBy) UnmarshalEasyJSON ¶
func (v *PeopleFindBy) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PeopleFindBy) UnmarshalJSON ¶
func (v *PeopleFindBy) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type PeopleGetGroups ¶
type PeopleGetGroups struct {
Groups struct {
Group []PeopleGroup `json:"group"`
} `json:"groups"`
Stat string `json:"stat"`
}
PeopleGetGroups struct easyjson:json
func (PeopleGetGroups) MarshalEasyJSON ¶
func (v PeopleGetGroups) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (PeopleGetGroups) MarshalJSON ¶
func (v PeopleGetGroups) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*PeopleGetGroups) UnmarshalEasyJSON ¶
func (v *PeopleGetGroups) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PeopleGetGroups) UnmarshalJSON ¶
func (v *PeopleGetGroups) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type PeopleGroup ¶
type PeopleGroup struct {
Nsid string `json:"nsid"`
Name string `json:"name"`
Iconfarm int `json:"iconfarm"`
Iconserver string `json:"iconserver"`
Admin int `json:"admin"`
Eighteenplus int `json:"eighteenplus"`
InvitationOnly int `json:"invitation_only"`
Members string `json:"members"`
PoolCount string `json:"pool_count"`
IsMember int `json:"is_member"`
IsModerator int `json:"is_moderator"`
IsAdmin int `json:"is_admin"`
}
PeopleGroup struct easyjson:json
func (PeopleGroup) MarshalEasyJSON ¶
func (v PeopleGroup) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (PeopleGroup) MarshalJSON ¶
func (v PeopleGroup) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*PeopleGroup) UnmarshalEasyJSON ¶
func (v *PeopleGroup) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PeopleGroup) UnmarshalJSON ¶
func (v *PeopleGroup) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Photo ¶
type Photo struct {
ID string `json:"id"`
Owner string `json:"owner"`
Title string `json:"title"`
Secret string `json:"secret"`
Server string `json:"server"`
Farm int64 `json:"farm"`
Ispublic int64 `json:"ispublic"`
Isfriend int64 `json:"isfriend"`
Isfamily int64 `json:"isfamily"`
}
Photo in flickr.photos.search easyjson:json
func (Photo) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Photo) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Photo) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Photo) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type PhotoSize ¶
type PhotoSize struct {
Label string `json:"label"`
Width json.Number `json:"width"`
Height json.Number `json:"height"`
Source string `json:"source"`
URL string `json:"url"`
Media string `json:"media"`
}
PhotoSize struct easyjson:json
func (PhotoSize) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (PhotoSize) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*PhotoSize) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PhotoSize) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type PhotoSizes ¶
type PhotoSizes struct {
Sizes struct {
Canblog int64 `json:"canblog"`
Candownload int64 `json:"candownload"`
Canprint int64 `json:"canprint"`
Size []PhotoSize `json:"size"`
Stat string `json:"stat"`
} `json:"sizes"`
}
PhotoSizes struct easyjson:json
func (PhotoSizes) MarshalEasyJSON ¶
func (v PhotoSizes) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (PhotoSizes) MarshalJSON ¶
func (v PhotoSizes) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*PhotoSizes) UnmarshalEasyJSON ¶
func (v *PhotoSizes) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PhotoSizes) UnmarshalJSON ¶
func (v *PhotoSizes) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Photos ¶
type Photos struct {
Page string `json:"page"`
Pages int64 `json:"pages"`
Perpage int64 `json:"perpage"`
Total int64 `json:"total"`
Photo []Photo `json:"photo"`
}
Photos in flickr.photos.search easyjson:json
func (Photos) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Photos) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Photos) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Photos) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type PhotosGetInfo ¶
type PhotosGetInfo struct {
Photo struct {
ID string `json:"id"`
Dateuploaded string `json:"dateuploaded"`
License string `json:"license"`
Media string `json:"media"`
Orgformat string `json:"originalformat"`
Orgsecret string `json:"originalsecret"`
Secret string `json:"secret"`
Server string `json:"server"`
Views string `json:"views"`
Farm int64 `json:"farm"`
Rotation int64 `json:"rotation"`
Comments Content `json:"comments"`
Description Content `json:"description"`
Title Content `json:"title"`
Tags Tags `json:"tags"`
Urls URL `json:"urls"`
Location Location `json:"location"`
Owner struct {
Iconfarm int64 `json:"iconfarm"`
Iconserver string `json:"iconserver"`
Location string `json:"location"`
Nsid string `json:"nsid"`
PathAlias string `json:"path_alias"`
Realname string `json:"realname"`
Username string `json:"username"`
} `json:"owner"`
Dates struct {
Posted string `json:"posted"`
Taken string `json:"taken"`
Lastupdate string `json:"lastupdate"`
} `json:"dates"`
} `json:"photo"`
Common
}
PhotosGetInfo in flickr.photos.getInfo easyjson:json
func (PhotosGetInfo) MarshalEasyJSON ¶
func (v PhotosGetInfo) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (PhotosGetInfo) MarshalJSON ¶
func (v PhotosGetInfo) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*PhotosGetInfo) UnmarshalEasyJSON ¶
func (v *PhotosGetInfo) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PhotosGetInfo) UnmarshalJSON ¶
func (v *PhotosGetInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type PhotosLicenses ¶
type PhotosLicenses struct {
Licenses struct {
License []License `json:"license"`
} `json:"licenses"`
Common
}
PhotosLicenses struct easyjson:json
func (PhotosLicenses) MarshalEasyJSON ¶
func (v PhotosLicenses) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (PhotosLicenses) MarshalJSON ¶
func (v PhotosLicenses) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*PhotosLicenses) UnmarshalEasyJSON ¶
func (v *PhotosLicenses) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PhotosLicenses) UnmarshalJSON ¶
func (v *PhotosLicenses) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type PhotosSearch ¶
type PhotosSearch struct {
Photos struct {
Page int `json:"page"`
Pages int `json:"pages"`
Perpage int `json:"perpage"`
Total interface{} `json:"total"`
Photo []Photo `json:"photo"`
} `json:"photos"`
//Stat string `json:"stat"`
Common
}
PhotosSearch in flickr.photos.search easyjson:json
func (PhotosSearch) MarshalEasyJSON ¶
func (v PhotosSearch) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (PhotosSearch) MarshalJSON ¶
func (v PhotosSearch) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*PhotosSearch) UnmarshalEasyJSON ¶
func (v *PhotosSearch) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PhotosSearch) UnmarshalJSON ¶
func (v *PhotosSearch) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Photoset ¶
type Photoset struct {
ID string `json:"id"`
Primary string `json:"primary"`
Owner string `json:"owner"`
Ownername string `json:"ownername"`
Title string `json:"title"`
Photos
}
Photoset struct easyjson:json
func (Photoset) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Photoset) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Photoset) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Photoset) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type PhotosetInfo ¶
type PhotosetInfo struct {
ID string `json:"id"`
Primary string `json:"primary"`
Owner string `json:"owner"`
Username string `json:"username"`
Title Content `json:"title"`
Description Content `json:"description"`
Secret string `json:"secret"`
Server string `json:"server"`
Farm int `json:"farm"`
Photos int `json:"photos"`
CountViews string `json:"count_views"`
CountComment string `json:"count_comments"`
CountPhotos string `json:"count_photos"`
CountVideos int `json:"count_videos"`
CanComment int `json:"can_comment"`
DateCreate string `json:"date_create"`
DateUpdate string `json:"date_update"`
CoverPhotoServer string `json:"coverphoto_server"`
CoverPhotoFarm int `json:"coverphoto_farm"`
}
PhotosetInfo struct easyjson:json
func (PhotosetInfo) MarshalEasyJSON ¶
func (v PhotosetInfo) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (PhotosetInfo) MarshalJSON ¶
func (v PhotosetInfo) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*PhotosetInfo) UnmarshalEasyJSON ¶
func (v *PhotosetInfo) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PhotosetInfo) UnmarshalJSON ¶
func (v *PhotosetInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type PhotosetsGetInfo ¶
type PhotosetsGetInfo struct {
Photoset PhotosetInfo `json:"photoset"`
}
PhotosetsGetInfo struct easyjson:json
func (PhotosetsGetInfo) MarshalEasyJSON ¶
func (v PhotosetsGetInfo) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (PhotosetsGetInfo) MarshalJSON ¶
func (v PhotosetsGetInfo) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*PhotosetsGetInfo) UnmarshalEasyJSON ¶
func (v *PhotosetsGetInfo) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PhotosetsGetInfo) UnmarshalJSON ¶
func (v *PhotosetsGetInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type PhotosetsGetPhotos ¶
PhotosetsGetPhotos struct easyjson:json
func (PhotosetsGetPhotos) MarshalEasyJSON ¶
func (v PhotosetsGetPhotos) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (PhotosetsGetPhotos) MarshalJSON ¶
func (v PhotosetsGetPhotos) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*PhotosetsGetPhotos) UnmarshalEasyJSON ¶
func (v *PhotosetsGetPhotos) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PhotosetsGetPhotos) UnmarshalJSON ¶
func (v *PhotosetsGetPhotos) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Place ¶
type Place struct {
Content string `json:"_content"`
PlaceID string `json:"place_id"`
Woeid int64 `json:"woeid"`
}
Place struct easyjson:json
func (Place) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Place) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Place) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Place) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Tags ¶
type Tags struct {
Tag []tag `json:"tag"`
}
Tags struct easyjson:json
func (Tags) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Tags) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Tags) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Tags) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type URL ¶
type URL struct {
URL []urlstr `json:"url"`
}
URL struct easyjson:json
func (URL) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (URL) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*URL) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*URL) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type User ¶
type User struct {
Nsid string `json:"nsid"`
Username string `json:"username"`
Fullname string `json:"fullname"`
}
User struct easyjson:json
func (User) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (User) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*User) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*User) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface