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

     1  go run m/hello
     2  stderr 'hello, world'
     3  
     4  cd hello
     5  go run .
     6  stderr 'hello, world'
     7  
     8  -- go.mod --
     9  module m
    10  
    11  go 1.16
    12  -- hello/hello.go --
    13  package main
    14  
    15  func main() {
    16  	println("hello, world")
    17  }
    18  

View as plain text