github.com/Johnny2210/revive@v1.0.8-0.20210625134200-febf37ccd0f5/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