~xenrox/aoc2019

e87aa258809a037bfe732eccb15f8da04cf093fb — Thorben Günther 4 years ago c004da0
tools: update with lint
1 files changed, 2 insertions(+), 0 deletions(-)

M tools/file.go
M tools/file.go => tools/file.go +2 -0
@@ 6,6 6,7 @@ import (
	"strconv"
)

// ScanFileString reads a file line by line and saves as string slice
func ScanFileString(filename string) ([]string, error) {
	file, err := os.Open(filename)
	if err != nil {


@@ 21,6 22,7 @@ func ScanFileString(filename string) ([]string, error) {
	return lines, scanner.Err()
}

// ScanFileInt reads a file line by line and saves as int slice
func ScanFileInt(filename string) ([]int, error) {
	file, err := os.Open(filename)
	if err != nil {