diff --git a/.scaffold/aoc/{{ .Project }}/internal/one/solve.go b/.scaffold/aoc/{{ .Project }}/internal/one/solve.go index 7119978..46b2ac2 100644 --- a/.scaffold/aoc/{{ .Project }}/internal/one/solve.go +++ b/.scaffold/aoc/{{ .Project }}/internal/one/solve.go @@ -1,8 +1,6 @@ package one -import ( - "bytes" -) +import "bytes" func Solve(buf []byte) (int, error) { r := bytes.NewReader(buf) diff --git a/.scaffold/aoc/{{ .Project }}/internal/one/solve_internal_test.go b/.scaffold/aoc/{{ .Project }}/internal/one/solve_internal_test.go index e5fd7ea..8ff8a96 100644 --- a/.scaffold/aoc/{{ .Project }}/internal/one/solve_internal_test.go +++ b/.scaffold/aoc/{{ .Project }}/internal/one/solve_internal_test.go @@ -7,9 +7,9 @@ import ( ) //go:embed testdata/input.txt -var data []byte +var inputBuf []byte func BenchmarkSolve(b *testing.B) { os.Stdout, _ = os.Open(os.DevNull) - Solve(data) + Solve(inputBuf) } diff --git a/.scaffold/aoc/{{ .Project }}/internal/two/solve.go b/.scaffold/aoc/{{ .Project }}/internal/two/solve.go index 402064f..0ee09eb 100644 --- a/.scaffold/aoc/{{ .Project }}/internal/two/solve.go +++ b/.scaffold/aoc/{{ .Project }}/internal/two/solve.go @@ -1,8 +1,6 @@ package two -import ( - "bytes" -) +import "bytes" func Solve(buf []byte) (int, error) { r := bytes.NewReader(buf) diff --git a/.scaffold/aoc/{{ .Project }}/internal/two/solve_internal_test.go b/.scaffold/aoc/{{ .Project }}/internal/two/solve_internal_test.go index ecb05d5..5b6dc8b 100644 --- a/.scaffold/aoc/{{ .Project }}/internal/two/solve_internal_test.go +++ b/.scaffold/aoc/{{ .Project }}/internal/two/solve_internal_test.go @@ -7,9 +7,9 @@ import ( ) //go:embed testdata/input.txt -var data []byte +var inputBuf []byte func BenchmarkSolve(b *testing.B) { os.Stdout, _ = os.Open(os.DevNull) - Solve(data) + Solve(inputBuf) } diff --git a/.scaffold/aoc/{{ .Project }}/solve_internal_test.go b/.scaffold/aoc/{{ .Project }}/solve_internal_test.go index 8c5a300..442eaff 100644 --- a/.scaffold/aoc/{{ .Project }}/solve_internal_test.go +++ b/.scaffold/aoc/{{ .Project }}/solve_internal_test.go @@ -7,9 +7,9 @@ import ( ) //go:embed testdata/input.txt -var data []byte +var inputBuf []byte func BenchmarkSolve(b *testing.B) { os.Stdout, _ = os.Open(os.DevNull) - Solve(data) + Solve(inputBuf) }