Skip to content

V1

Choose a tag to compare

@marcos-venicius marcos-venicius released this 06 Sep 11:55
· 3 commits to main since this release

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