support

package
v0.0.0-...-ac5bdac Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2022 License: MPL-2.0 Imports: 7 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL