https://studygolang.com/dl
更改go env 文件,开启 module,更换镜像源
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn
安装vs code 或 goland 编辑器
package main
import "fmt"
func main() {
fmt.Println("hello world");
}
go run xxx.go 执行文件
Copyright 2014-2024 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号