Since the official website is blocked, download it from the Go language Chinese website: https://studygolang.com/
Download the corresponding system version
windows : go1.10.1.windows-amd64.msi
go1.10.1.windows-amd64.zip
源码 :go1.10.1.src.tar.gz
linux : go1.10.1.linux-amd64.tar.gz
MacOS : go1.10.1.darwin-amd64.pkg
Installation under Windows system
Under Windows, you can use the installation package with the .msi suffix to install.
By default, the .msi file will be installed in the c:\Go directory, and c:\Go\bin has been added to the environment variable. You need to restart the command window to
view the version information.go version
development test
test.go
package main
import "fmt"
func main(){
fmt.println("hello world")
}
executable file
go run test.go
hello world 表示安装成功