Documentation ¶
Index ¶
- Constants
- func AssertEqual(expected, actual int)
- func GetDayInput(embedInput embed.FS) []string
- func GetDayInputFile(embedInput embed.FS, filename string) []string
- func RunPart(name string, input []string, part InputFunc)
- func RunSolution(input []string, partOne InputFunc, partTwo InputFunc)
- func RunTime(startTime time.Time) string
- func Seq(x, y int) []int
- func ToInt(s string) int
- type Client
- type InputFunc
Constants ¶
View Source
const RequestTimout = 10
Variables ¶
This section is empty.
Functions ¶
func AssertEqual ¶
func AssertEqual(expected, actual int)
func GetDayInput ¶
func RunSolution ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DownloadAndSaveInput ¶
DownloadAndSaveInput downloads and saves the requested input file.
func (*Client) DownloadInput ¶
func (c *Client) DownloadInput(year, day int) (io.ReadCloser, error)
DownloadInput downloads the requested input file.
Click to show internal directories.
Click to hide internal directories.