From 0f48ed35ea09362b53bfa7d603b3f2ea72265d3a Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sun, 29 Dec 2024 08:49:51 +0000 Subject: [PATCH] rename data to inputBuf (free up data as variable/type name) --- .scaffold/aoc/{{ .Project }}/internal/one/solve.go | 4 +--- .../aoc/{{ .Project }}/internal/one/solve_internal_test.go | 4 ++-- .scaffold/aoc/{{ .Project }}/internal/two/solve.go | 4 +--- .../aoc/{{ .Project }}/internal/two/solve_internal_test.go | 4 ++-- .scaffold/aoc/{{ .Project }}/solve_internal_test.go | 4 ++-- 5 files changed, 8 insertions(+), 12 deletions(-) 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) }