Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IsCIEnv = os.Getenv("CI") != ""
Functions ¶
func GetInputFile ¶
func GetInputFile(day int, useLocal bool) (io.ReadSeekCloser, error)
GetInputFile fetches a file from the local disk if useLocal is true or from my private advent-of-code-inputs GitHub repo. The reader returned can be reset to the beginning.
Ex:
r, _ := GetInputFile(1, true) r.Seek(0, io.SeekStart)
Types ¶
Click to show internal directories.
Click to hide internal directories.