Documentation
¶
Index ¶
- func Check(err any, msg string)
- func ChompInt(line []byte, i int) (int, int)
- func Client(url *url.URL, cookie *http.Cookie) *http.Client
- func DefaultInputFilePath(day int) string
- func GetDayArg() int
- func GetInputFilePath(day int) string
- func GetLevelArg() int
- func GetSessionCookie() *http.Cookie
- func HasInputArg() bool
- func Panic(a ...any)
- func SendRequest(req *http.Request) *http.Response
- func StartStopwatch(f func(string))
- func Stopwatch(label string)
- func ToInt(s string) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChompInt ¶
Takes a line of input and a starting index, searches for the next integer, and returns the next index and that integer.
func DefaultInputFilePath ¶
func GetInputFilePath ¶
func GetLevelArg ¶
func GetLevelArg() int
func GetSessionCookie ¶
func HasInputArg ¶
func HasInputArg() bool
func StartStopwatch ¶
func StartStopwatch(f func(string))
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.