Repository navigation
V1
AocReader
This lib is a helper to my aoc solutions.
Mocking
This method allows you to pass an array as the lines of a file
import "github.com/marcos-venicius/aocreader"
lines := []string{
"line 1",
"...",
}
reader := aocreader.NewMockReader(lines)
reader.Read(...)Using
This method allows you to pass the path to a file where you want to read the lines
import "github.com/marcos-venicius/aocreader"
reader := aocreader.NewAocReader("./input.txt")
reader.Read(...)Full Changelog: https://github.com/marcos-venicius/aocreader/commits/v1