Stuck testing golang installation - go get github.com/golang/example/hello

I have installed go1.11/ windows amd64. I am testing the installation of GO


Have already tried by chaging the fileformat to UTF 8 . Also tried ‘go get github.com/golang/example/hello’ but ended up with error exit status 1(Could nt upload screenshot due to limitation)

Below is the output of ‘go env’
C:\Go\src> go env
set GOPATH=D:\gocode
set GOROOT=C:\Go

Could someone please help to resolve this issue?

How does your file look like?

package main

import “fmt”

func main() {
fmt.Printf(“hello, world\n”)
}

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.