I want to learn Go. I installed Go 1.13.5 on 64-bit Windows 10. I started out trying to build the following hello world program:
package hello
import ("fmt")
func main() {
fmt.Printf("Hello world!")
}
However, when I try to build it or any other Go program, I get errors
c:\go\src\runtime\stubs_x86.go:10:6: stackcheck redeclared in this block
previous declaration at c:\go\src\runtime\stubs_amd64x.go:10:6
c:\go\src\runtime\unaligned1.go:11:6: readUnaligned32 redeclared in this block
previous declaration at c:\go\src\runtime\alg.go:321:40
c:\go\src\runtime\unaligned1.go:15:6: readUnaligned64 redeclared in this block
previous declaration at c:\go\src\runtime\alg.go:329:40
Does anyone know what is going wrong?
C:\Go
like it should. I had to manually delete the directory after running the uninstaller.