Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHubUser ¶
type GitHubUser struct { IsContributor bool IsSponsor bool // contains filtered or unexported fields }
GitHubUser represents a GitHub user account as defined by a GitHub API access key This is used to determine whether or not the WTF user is a sponsor (via GitHub sponsors) and/or a contributor to WTF
func NewGitHubUser ¶
func NewGitHubUser(githubAPIKey string) *GitHubUser
NewGitHubUser creates and returns an instance of GitHub user with the boolean fields populated
func (*GitHubUser) Load ¶
func (ghUser *GitHubUser) Load() error
Load loads the user's data from GitHub
Click to show internal directories.
Click to hide internal directories.