Documentation
¶
Index ¶
Constants ¶
View Source
const ( STARS = "Earned Stars Count 🌟" PRS = "Pull Requests Count 🔨" ISSUES = "Issues Count 📈" REPOSITORIES = "Repositories Count 📖" )
View Source
const ( SAME_USER = "Continue with the same GitHub user" CHANGE_USER = "Change GitHub user" QUIT_PROGRAM = "Quit the program" )
Variables ¶
View Source
var ( ContinueProgramOptions = []string{SAME_USER, CHANGE_USER, QUIT_PROGRAM} StatsOptions = []string{STARS, PRS, ISSUES, REPOSITORIES} GitHubUsernamePlaceholders = []string{ "theprimeagen", "torvalds", "dhh", "tj", "gaearon", "addyosmani", "yyx990803", "sindresorhus", "fabpot", "substack", "tpope", "pengwynn", "paulirish", "steveklabnik", "defunkt", "mojombo", "drnic", "avsm", "jashkenas", "hadley", "tomasohCHOM", "EthanThatOneKid", "acmcsufoss", } )
Functions ¶
func GrabRandomPlaceholder ¶
func GrabRandomPlaceholder() string
Types ¶
type ProgramState ¶
type ProgramState struct {
ExitState bool
Username string
SelectedStats []string
SelectedContinueOption string
}
func (*ProgramState) ExecuteAfterRetrieval ¶
func (p *ProgramState) ExecuteAfterRetrieval()
func (*ProgramState) ExitAfterContinueOption ¶
func (p *ProgramState) ExitAfterContinueOption() bool
func (*ProgramState) ExitIfRequested ¶
func (p *ProgramState) ExitIfRequested(tprogram *tea.Program)
func (*ProgramState) RetrieveData ¶
func (p *ProgramState) RetrieveData(ctx context.Context, client *github.Client)
Click to show internal directories.
Click to hide internal directories.