Documentation
¶
Index ¶
Constants ¶
View Source
const ALL_STATS = "commits,prs,reviews,issues,stars,repos,followers"
Variables ¶
View Source
var SvgTemplate string
Functions ¶
func GenerateCard ¶
func GenerateCard(languages []*Language, streak *requests.StreakStats, stats *requests.GlobalStats, showStreaks bool, showStats bool, statsFeatures string, output string) string
Types ¶
type CardData ¶
type CardData struct {
Languages *LanguagesSection
Stats *StatsSection
Streaks *StreaksSection
Height int
}
type LanguageSize ¶
type LanguagesSection ¶
type LanguagesSection struct {
Sizes []LanguageSize
Left []*LangSvg
Right []*LangSvg
Height int
}
func NewLanguagesSection ¶
func NewLanguagesSection(languages []*Language, barWidth int) *LanguagesSection
type StatsFeature ¶
type StatsFeature string
const ( Repos StatsFeature = "repos" Stars StatsFeature = "stars" Forks StatsFeature = "forks" Commits StatsFeature = "commits" PRs StatsFeature = "prs" Reviews StatsFeature = "reviews" Issues StatsFeature = "issues" )
type StatsSection ¶
func NewStatsSection ¶
func NewStatsSection(stats *requests.GlobalStats, show bool, featuresFilter string, formatCount func(int) string) *StatsSection
type StreaksSection ¶
type StreaksSection struct {
Data *requests.StreakStats
Height int
}
func NewStreaksSection ¶
func NewStreaksSection(streak *requests.StreakStats, show bool) *StreaksSection
Click to show internal directories.
Click to hide internal directories.