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

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

View as plain text