go-format-args-check

module
v0.0.0-...-a403dc3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2023 License: MIT

README

go-format-args-check

The Go linter go-format-args-check checks that printf-like functions are named with f at the end.

For example, Printf should have exactly 3 args, but got 2. You'll get a error.

package main

import "log"

func main() {
	log.Printf("name: %s, age: %d, test: %s", "test", 3)
}
main.go:6:2: formatting function 'Printf' args should match % count

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL