Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewParser ¶
func NewParser() *participle.Parser[Leaderboard]
Types ¶
type Leaderboard ¶
type Leaderboard struct { Times []int `parser:"'Time' ':' @Int+"` Distances []int `parser:"'Distance' ':' @Int+"` }
func (*Leaderboard) Part1 ¶
func (leaderboard *Leaderboard) Part1() int
func (*Leaderboard) Part2 ¶
func (leaderboard *Leaderboard) Part2() int
Click to show internal directories.
Click to hide internal directories.