Skip to content

chore: golangci-lint, zero-alloc null marshal, lint fixes#3

Merged
kolkov merged 1 commit into
mainfrom
release/v0.3.1
Jul 26, 2026
Merged

chore: golangci-lint, zero-alloc null marshal, lint fixes#3
kolkov merged 1 commit into
mainfrom
release/v0.3.1

Conversation

@kolkov

@kolkov kolkov commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add .golangci.yml v2 config with 30+ linters (matching coregx ecosystem: fursy, stream, coregex)
  • Add lint CI job (golangci/golangci-lint-action@v8)
  • Extract []byte("null") to var jsonNull — eliminates 1 alloc/op on null marshal (15x faster)
  • Extract JSON string literals to constants (strNull, strTrue, strFalse)
  • Fix staticcheck, gocritic issues

Test plan

  • go test ./... — all pass
  • golangci-lint run --timeout=5m ./... — 0 issues
  • go vet ./... — clean
  • gofmt -l . — clean

- Add .golangci.yml v2 config (30+ linters, matching coregx ecosystem)
- Add lint CI job (golangci-lint-action@v8)
- Extract []byte("null") to var jsonNull (15x faster null marshal: 13ns → 0.86ns)
- Extract string literals to constants (strNull, strTrue, strFalse)
- Fix staticcheck QF1009: time.Equal() for instant comparison
- Fix gocritic: paramTypeCombine, unlambda in tests
@codecov

codecov Bot commented Jul 26, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.00000% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
byte.go 50.00% 0 Missing and 1 partial ⚠️
time.go 66.66% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@kolkov
kolkov merged commit e835099 into main Jul 26, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant