package
0.0.0-20241211215934-c01629110046
Repository: https://github.com/gowikel/adventofcode-golang.git
Documentation: pkg.go.dev

# Packages

intconv defines IntConversor structure which can be used to map integers between two ranges.

# Functions

No description provided by the author
No description provided by the author
NewAlamacEntry will return an almanac with an empty list of ranges.
Returns a new initialized SeedRange.
ParseAlmanacEntry gets an almanac entry, which is composed of a title and a list of ranges, and returns the right AlmanacEntry structure, with the Mapper initialized.
ParseAlmanacLines gets all the almanac lines and converts them into a map with the From acting as key, and a AlmanacEntry object as value.
ParseSeedLineAsRanges will parse the seeds line, but interpreting the line as a sequence of tuples, where the first element of the tuple specifies the start of the seed range, and the second the length of the range.
ParseSeedsLine parses a line of seeds and returns a slice of integers.

# Variables

ErrInvalidAlmanacHeader is returned when the almanac header is not correctly parsed.
ErrInvalidAlmanacRange is returned when the almanac range is not valid.
ErrNotEnoughData is returned when the input given does not have enough data to complete.
ErrParse is returned when an error has happened during parsing.

# Structs

AlamanacEntry represents an entry on the almanac.
No description provided by the author
SeedRange contains information about a range of seeds.