Skip to content

Fix non-constant Fprintf format strings#22

Open
HNO3Miracle wants to merge 1 commit into
pborman:masterfrom
HNO3Miracle:fix-go-vet-nonconstant-fprintf
Open

Fix non-constant Fprintf format strings#22
HNO3Miracle wants to merge 1 commit into
pborman:masterfrom
HNO3Miracle:fix-go-vet-nonconstant-fprintf

Conversation

@HNO3Miracle

@HNO3Miracle HNO3Miracle commented Jun 10, 2026

Copy link
Copy Markdown

This fixes two calls where a fully assembled message is passed as the format argument to fmt.Fprintf. Recent Go vet versions report these as non-constant format strings.

The strings are already constructed by concatenation and do not use formatting directives, so fmt.Fprint is the simpler and safer call. The same fix is applied to both the root module and the v2 module.

Validation:

  • go test ./...

Signed-off-by: HNO3Miracle <xiangao.or@isrc.iscas.ac.cn>
@HNO3Miracle
HNO3Miracle force-pushed the fix-go-vet-nonconstant-fprintf branch from 3f0d06d to cae56ec Compare June 22, 2026 07:31
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