Documentation ¶
Index ¶
- func AssignScores(leaderboards map[string]*aoc.Leaderboard, users []*User) error
- func AssignSubmissions(users []*User) error
- func Execute(session string) error
- func UpdateReadme(users []*User, teams []*Team) error
- type Participant
- type Star
- type Stats
- type Team
- type Teams
- type User
- type UserSubmissionsByYear
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssignScores ¶
func AssignScores(leaderboards map[string]*aoc.Leaderboard, users []*User) error
func AssignSubmissions ¶
func UpdateReadme ¶
Types ¶
type Participant ¶
type Teams ¶
type Teams struct { Teams []*Team `yaml:"team"` Participants []Participant `yaml:"participants"` }
type User ¶
type User struct { AocID int Name string Username string AvatarURL string Team *Team ProfileURL string Stats map[string]Stats }
func GetUsersFromTeams ¶
func MergeUsers ¶
func MergeUsers(leaderboard *aoc.Leaderboard, users []*User) []*User
MergeUsers will add the users in the leaderboard that are missing in the teams.yaml
type UserSubmissionsByYear ¶
Click to show internal directories.
Click to hide internal directories.