Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 341 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 341 Bytes

go-printf-func-name

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

For 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...)
}