github.com/be-b10g/golangci-lint@v1.17.2/test/testdata/depguard.go (about) 1 //args: -Edepguard 2 //config: linters-settings.depguard.include-go-root=true 3 //config: linters-settings.depguard.packages=compress/*,log 4 package testdata 5 6 import ( 7 "compress/gzip" // ERROR "`compress/gzip` is in the blacklist" 8 "log" // ERROR "`log` is in the blacklist" 9 ) 10 11 func SpewDebugInfo() { 12 log.Println(gzip.BestCompression) 13 }