github.com/songshiyun/revive@v1.1.5-0.20220323112655-f8433a19b3c5/testdata/golint/blank-import-with-embed.go (about) 1 // Test that blank import of "embed" is allowed 2 3 // Package foo ... 4 package foo 5 6 import ( 7 _ "embed" 8 _ "fmt" 9 /* MATCH:8 /a blank import should be only in a main or test package, or have a comment justifying it/ */ 10 ) 11 12 //go:embed .gitignore 13 var _ string 14