util

package
v0.0.0-...-064b852 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(err any, msg string)

func ChompInt

func ChompInt(line []byte, i int) (int, int)

Takes a line of input and a starting index, searches for the next integer, and returns the next index and that integer.

func Client

func Client(url *url.URL, cookie *http.Cookie) *http.Client

func DefaultInputFilePath

func DefaultInputFilePath(day int) string

func GetDayArg

func GetDayArg() int

func GetInputFilePath

func GetInputFilePath(day int) string

func GetLevelArg

func GetLevelArg() int

func GetSessionCookie

func GetSessionCookie() *http.Cookie

func HasInputArg

func HasInputArg() bool

func Panic

func Panic(a ...any)

func SendRequest

func SendRequest(req *http.Request) *http.Response

func StartStopwatch

func StartStopwatch(f func(string))

func Stopwatch

func Stopwatch(label string)

func ToInt

func ToInt(s string) int

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL