Update and fix staticcheck
This commit is contained in:
7
vendor/honnef.co/go/tools/facts/generated.go
vendored
7
vendor/honnef.co/go/tools/facts/generated.go
vendored
@ -19,6 +19,7 @@ const (
|
||||
Goyacc
|
||||
Cgo
|
||||
Stringer
|
||||
ProtocGenGo
|
||||
)
|
||||
|
||||
var (
|
||||
@ -51,10 +52,16 @@ func isGenerated(path string) (Generator, bool) {
|
||||
return Goyacc, true
|
||||
case "by cmd/cgo;":
|
||||
return Cgo, true
|
||||
case "by protoc-gen-go.":
|
||||
return ProtocGenGo, true
|
||||
}
|
||||
if strings.HasPrefix(text, `by "stringer `) {
|
||||
return Stringer, true
|
||||
}
|
||||
if strings.HasPrefix(text, `by goyacc `) {
|
||||
return Goyacc, true
|
||||
}
|
||||
|
||||
return Unknown, true
|
||||
}
|
||||
if bytes.Equal(s, oldCgo) {
|
||||
|
Reference in New Issue
Block a user