...

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

Documentation: cmd/go/testdata/script

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

View as plain text