Skip to content

fix(ircclient): use format verbs instead of string concatenation in fmt.Fprintf#132

Merged
cfindlayisme merged 1 commit into
mainfrom
fix/non-constant-format-strings
Apr 30, 2026
Merged

fix(ircclient): use format verbs instead of string concatenation in fmt.Fprintf#132
cfindlayisme merged 1 commit into
mainfrom
fix/non-constant-format-strings

Conversation

@cfindlayisme

Copy link
Copy Markdown
Owner

Summary

  • Fixes the build failure in ircclient surfaced by the gin v1.12.0 upgrade (fix(deps): update module github.com/gin-gonic/gin to v1.12.0 #117)
  • All fmt.Fprintf calls that used string concatenation for the format argument (e.g. "NICK "+nick+"\r\n") are replaced with proper format verbs (e.g. "NICK %s\r\n", nick)
  • Same fix applied to the PONG handler in handlers.go

The go vet printf analyzer flags non-constant format strings as errors; gin v1.12.0's bumped minimum Go version in its go.mod caused this to be enforced during go test.

Test plan

  • go vet ./ircclient/... passes cleanly
  • CI build-test-deploy passes

🤖 Generated with Claude Code

…mt.Fprintf calls

Resolves go vet printf check failures surfaced by gin v1.12.0's updated
minimum Go version requirement. Non-constant format strings are unsafe
and flagged as build errors by the printf analyzer.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@cfindlayisme cfindlayisme merged commit 219f2d1 into main Apr 30, 2026
1 check passed
@cfindlayisme cfindlayisme deleted the fix/non-constant-format-strings branch April 30, 2026 03:59
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