No description
  • Go 92.8%
  • Makefile 7.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-01 14:55:09 +00:00
.github chore(deps): bump zizmorcore/zizmor-action from 0.6.1 to 0.6.2 in the github-actions group (#11) 2026-09-01 14:48:11 +00:00
cmd/go-printf-func-name chore: new module name 2024-10-19 15:17:27 +02:00
pkg/analyzer fix: support any 2025-09-02 17:07:48 +02:00
testdata/src/p fix: support any 2025-09-02 17:07:48 +02:00
.gitattributes chore: new module name 2024-10-19 15:17:27 +02:00
.gitignore chore: new module name 2024-10-19 15:17:27 +02:00
.golangci.yml chore: update linter 2026-09-01 16:33:35 +02:00
go.mod chore(deps): bump golang.org/x/tools from 0.48.0 to 0.49.0 in the go group across 1 directory (#10) 2026-09-01 14:55:09 +00:00
go.sum chore(deps): bump golang.org/x/tools from 0.48.0 to 0.49.0 in the go group across 1 directory (#10) 2026-09-01 14:55:09 +00:00
LICENSE chore: new module name 2024-10-19 15:17:27 +02:00
Makefile chore: new module name 2024-10-19 15:17:27 +02:00
README.md chore: new module name 2024-10-19 15:17:27 +02:00

go-printf-func-name

The Go linter go-printf-func-name checks that printf-like functions are named with f at the end.

Example

myLog should be named myLogf by Go convention:

package main

import "log"

func myLog(format string, args ...interface{}) {
	const prefix = "[my] "
	log.Printf(prefix + format, args...)
}
$ go vet -vettool=$(which go-printf-func-name) ./...
./main.go:5:1: printf-like formatting function 'myLog' should be named 'myLogf'