Go语言一般指go(又称 Golang够浪)

够浪的下载地址
https://golang.google.cn/
https://golang.google.cn/dl/
https://golang.google.cn/doc/install?download=go1.15.windows-amd64.msi

package main

import "fmt"

func main() {
   fmt.Println("Hello, 大球Cat!")
}

go run cat.go
go build cat.go

wget https://golang.google.cn/dl/go1.15.linux-arm64.tar.gz
tar -C /usr/local -xzf go1.15.linux-arm64.tar.gz
export PATH=$PATH:/usr/local/go/bin

可以交叉编译

set GOOS=linux
set GOARCH=arm64

参考文献:
https://www.runoob.com/go/go-environment.html

标签: none

添加新评论