github.com/megatontech/mynoteforgo@v0.0.0-20200507084910-5d0c6ea6e890/源码/cmd/go/testdata/script/mod_gofmt_invalid.txt (about)

     1  # Test for a crash in go fmt on invalid input when using modules.
     2  # Issue 26792.
     3  
     4  env GO111MODULE=on
     5  ! go fmt x.go
     6  ! stderr panic
     7  
     8  -- go.mod --
     9  module x
    10  
    11  -- x.go --
    12  // Missing package declaration.
    13  var V int