1
0
mirror of https://github.com/golang/go synced 2024-11-22 06:24:38 -07:00

govet: add Panic to the list of functions

R=rsc
CC=golang-dev
https://golang.org/cl/4119049
This commit is contained in:
Rob Pike 2011-02-01 12:47:09 -08:00
parent b50ed022f5
commit 6a13175f7d

View File

@ -210,6 +210,7 @@ var printfList = map[string]int{
"Errorf": 0, "Errorf": 0,
"Fatalf": 0, "Fatalf": 0,
"Fprintf": 1, "Fprintf": 1,
"Panicf": 0,
"Printf": 0, "Printf": 0,
"Sprintf": 0, "Sprintf": 0,
} }
@ -220,6 +221,7 @@ var printList = map[string]int{
"Error": 0, "Error": 0,
"Fatal": 0, "Fatal": 0,
"Fprint": 1, "Fprintln": 1, "Fprint": 1, "Fprintln": 1,
"Panic": 0, "Panicln": 0,
"Print": 0, "Println": 0, "Print": 0, "Println": 0,
"Sprint": 0, "Sprintln": 0, "Sprint": 0, "Sprintln": 0,
} }