It is not easy for me to try to run a simple golang program on a virtual machine that a tramp runs on. These are the relevant fields of my go env :
GOARCH="amd64" GOPATH="/usr/local/src/go" GOROOT="/usr/local/go" GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
This is the program I'm trying to execute (located in / usr / local / src / go / program):
package program import ( "fmt" ) func main() { fmt.Print("Aloha") }
This is the result I get:
main.go:4:5: /usr/local/go/src/fmt/doc.go:1:1: expected 'package', found 'EOF' package runtime: /usr/local/go/src/runtime/alg.go:1:1: expected 'package', found 'EOF'
Please note that this is a completely fake program. The strange thing is that it works completely in a different environment. What am I missing here?
Thanks a lot!
source share