install on windowns 64
https://studygolang.com/dl
Open the go1.10.windows-amd64.msi file and follow the prompts to install the Go tools.
By default, the installer puts the Go distribution in d:\Go.
The installer should put the d:\Go\bin directory in your PATH environment variable.
You may need to restart any open command prompts for the change to take effect.
D:\>go version
go version go1.10 windows/amd64
Test your installation
Create your workspace directory, d:\gotest.
(If you'd like to use a different directory, you will need to set the GOPATH environment variable.)
make the directory src/hello inside your workspace
and in that directory create a file named hello.go
package main
import "fmt"
func main() {
fmt.Printf("hello, world\n")
}
C:\> cd d:\gotest\src\hello
d:\gotest\src\hello> go build
https://studygolang.com/dl
Open the go1.10.windows-amd64.msi file and follow the prompts to install the Go tools.
By default, the installer puts the Go distribution in d:\Go.
The installer should put the d:\Go\bin directory in your PATH environment variable.
You may need to restart any open command prompts for the change to take effect.
D:\>go version
go version go1.10 windows/amd64
Test your installation
Create your workspace directory, d:\gotest.
(If you'd like to use a different directory, you will need to set the GOPATH environment variable.)
make the directory src/hello inside your workspace
and in that directory create a file named hello.go
package main
import "fmt"
func main() {
fmt.Printf("hello, world\n")
}
C:\> cd d:\gotest\src\hello
d:\gotest\src\hello> go build