...

Text file src/cmd/go/testdata/script/generate_bad_imports.txt

Documentation: cmd/go/testdata/script

     1[GOOS:windows] skip # skip because windows has no echo command
     2
     3go generate gencycle
     4stdout 'hello world' # check go generate gencycle ran the generator
     5
     6-- go.mod --
     7module gencycle
     8
     9go 1.16
    10-- gencycle.go --
    11//go:generate echo hello world
    12
    13package gencycle
    14
    15import _ "gencycle"

View as plain text