Documentation ¶
Index ¶
- func CheckMainPuzzleSolution(t *testing.T, expect1, expect2 int)
- func MergeGapsBetweenLines(bricks []string, mortar string) []string
- func ReadIntegersFromFile(filename string) ([]int, error)
- func ReadLinesFromFile(filename string) ([]string, error)
- func SliceStringsToInts(numStrs []string) ([]int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckMainPuzzleSolution ¶
CheckMainPuzzleSolution can be used to test that a main program generates the correct puzzle output.
func MergeGapsBetweenLines ¶
MergeGapsBetweenLines takes a slice of lines (bricks) and shall merge lines together with the mortar, breaking upon a blank line.
func ReadIntegersFromFile ¶
ReadIntegersFromFile reads a file and attempts to parse each line as an integer, returning the resultant slice of integers.
func ReadLinesFromFile ¶
ReadLinesFromFile reads the entire file specified, and returns a slice of strings
func SliceStringsToInts ¶
SliceStringsToInts takes a slice of strings and attempts to convert to a slice of integers.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.