Skip to content

felipe-lee/go-printf-func-name

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-printf-func-name

Following Writing Useful go/analysis Linter.

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

About

Linter checks that printf-like functions are named with `f` at the end. Following https://disaev.me/p/writing-useful-go-analysis-linter/

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages