github.com/nozzle/golangci-lint@v1.49.0-nz3/test/testdata/depguard_additional_guards.go (about) 1 //golangcitest:args -Edepguard 2 //golangcitest:config_path testdata/configs/depguard_additional_guards.yml 3 package testdata 4 5 import ( 6 "compress/gzip" // want "`compress/gzip` is in the denylist" 7 "fmt" // want "`fmt` is in the denylist" 8 "log" // want "`log` is in the denylist: don't use log" 9 "strings" // want "`strings` is in the denylist: disallowed in additional guard" 10 ) 11 12 func SpewDebugInfo() { 13 log.Println(gzip.BestCompression) 14 log.Println(fmt.Sprintf("SpewDebugInfo")) 15 log.Println(strings.ToLower("SpewDebugInfo")) 16 }