From 17efa78e8e60b38e14430f2f89de005e946e8bf2 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 14 Apr 2026 11:23:26 +0300 Subject: fix: shadowing, version.Tag, prealloc LoadRecords (ask 54) - CreateKey: avoid shadowing named return err on rand.Read - daemon Run: rename slog logger to slogLog vs stdlib log package - version: rename Version to Tag to avoid version.Version stutter - LoadRecords: COUNT(*) then make slice with capacity Made-with: Cursor --- internal/cli/cli_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/cli/cli_test.go') diff --git a/internal/cli/cli_test.go b/internal/cli/cli_test.go index a89fa50..9f3fd6d 100644 --- a/internal/cli/cli_test.go +++ b/internal/cli/cli_test.go @@ -62,8 +62,8 @@ func TestStableVersionFlags(t *testing.T) { t.Fatalf("Execute: %v", err) } }) - if !strings.Contains(out, version.Version) { - t.Fatalf("stdout %q should contain version %q", out, version.Version) + if !strings.Contains(out, version.Tag) { + t.Fatalf("stdout %q should contain version %q", out, version.Tag) } }) } -- cgit v1.2.3