github

package
v0.0.0-...-81698c8 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 8 Imported by: 0

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

type File

type File struct {
	io.Closer
	io.ReadSeeker
}

Jump to

Keyboard shortcuts

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