mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-11 22:08:45 -04:00
22 lines
406 B
Go
22 lines
406 B
Go
|
//golangcitest:args -Egocheckcompilerdirectives
|
||
|
package testdata
|
||
|
|
||
|
import _ "embed"
|
||
|
|
||
|
// Okay cases:
|
||
|
|
||
|
//go:generate echo hello world
|
||
|
|
||
|
//go:embed
|
||
|
var Value string
|
||
|
|
||
|
//go:
|
||
|
|
||
|
// Problematic cases:
|
||
|
|
||
|
// go:embed // want "compiler directive contains space: // go:embed"
|
||
|
|
||
|
// go:embed // want "compiler directive contains space: // go:embed"
|
||
|
|
||
|
//go:genrate // want "compiler directive unrecognized: //go:genrate"
|