mirror of
https://github.com/golang/go
synced 2024-11-20 09:54:45 -07:00
parent
fd021cbe8f
commit
678a70e3b6
@ -312,7 +312,7 @@ func (f *File) checkPrint(call *ast.CallExpr, name string, skip int) {
|
||||
}
|
||||
|
||||
// This function never executes, but it serves as a simple test for the program.
|
||||
// Test with govet --funcs="Bad:1,Badf:1,Warn:1,Warnf:1" govet.go
|
||||
// Test with govet -printfuncs="Bad:1,Badf:1,Warn:1,Warnf:1" govet.go
|
||||
func BadFunctionUsedInTests() {
|
||||
fmt.Println() // niladic call
|
||||
fmt.Println("%s", "hi") // % in call to Println
|
||||
|
Loading…
Reference in New Issue
Block a user