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