Black Lives Matter. Support the Equal Justice Initiative.

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

Documentation: cmd/go/testdata/script

     1  env GO111MODULE=off
     2  
     3  ! go fmt does-not-exist
     4  
     5  go fmt -n exclude
     6  stdout 'exclude[/\\]x\.go'
     7  stdout 'exclude[/\\]x_linux\.go'
     8  
     9  # Test edge cases with gofmt.
    10  # Note that this execs GOROOT/bin/gofmt.
    11  
    12  ! exec gofmt does-not-exist
    13  
    14  exec gofmt gofmt-dir/no-extension
    15  stdout 'package x'
    16  
    17  exec gofmt gofmt-dir
    18  ! stdout 'package x'
    19  
    20  -- exclude/empty/x.txt --
    21  -- exclude/ignore/_x.go --
    22  package x
    23  -- exclude/x.go --
    24  // +build linux,!linux
    25  
    26  package x
    27  -- exclude/x_linux.go --
    28  // +build windows
    29  
    30  package x
    31  -- gofmt-dir/no-extension --
    32  package x
    33  

View as plain text