// Package pkg ... package pkg import "net/http" func fn() { // Check all the supported functions http.Error(nil, "", http.StatusVariantAlsoNegotiates) // want `http\.StatusVariantAlsoNegotiates` http.Redirect(nil, nil, "", http.StatusVariantAlsoNegotiates) // want `http\.StatusVariantAlsoNegotiates` http.StatusText(http.StatusVariantAlsoNegotiates) // want `http\.StatusVariantAlsoNegotiates` http.RedirectHandler("", http.StatusVariantAlsoNegotiates) // want `http\.StatusVariantAlsoNegotiates` // Don't flag literals with no known constant http.StatusText(600) // Don't flag constants http.StatusText(http.StatusAccepted) // Don't flag items on the whitelist (well known codes) http.StatusText(404) }