Documentation
¶
Index ¶
- Constants
- type MyUser
- func (receiver *MyUser) FetchAllowDenyList()
- func (receiver *MyUser) FetchFollowers(count *int)
- func (receiver *MyUser) FetchFollowing(count *int)
- func (receiver *MyUser) Follow()
- func (receiver *MyUser) PrintFollowers()
- func (receiver *MyUser) PrintFollowing()
- func (receiver *MyUser) PrintStatus()
- func (receiver *MyUser) Unfollow()
- type User
Constants ¶
View Source
const ( FOLLOWING_URL = "https://api.github.com/users/%s/following?per_page=100" FOLLOWERS_URL = "https://api.github.com/users/%s/followers?per_page=100" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MyUser ¶
type MyUser struct {
Followers []User
Following []User
Login string `json:"login"`
TargetUser string
Token string
UserStatus map[string]string
}
Main user struct
func (*MyUser) FetchAllowDenyList ¶ added in v1.4.0
func (receiver *MyUser) FetchAllowDenyList()
func (*MyUser) FetchFollowers ¶
func (*MyUser) FetchFollowing ¶
func (*MyUser) PrintFollowers ¶ added in v1.5.0
func (receiver *MyUser) PrintFollowers()
func (*MyUser) PrintFollowing ¶ added in v1.5.0
func (receiver *MyUser) PrintFollowing()
func (*MyUser) PrintStatus ¶ added in v1.5.0
func (receiver *MyUser) PrintStatus()
Click to show internal directories.
Click to hide internal directories.