Go 安装

Mac安装和初步使用go语言

export GOROOT=/usr/local/go
export GOPATH=~/project/go
export GOMODCACHE=~/.gomodcache/

国内

GOSUMDB=sum.golang.google.cn
GOPROXY=https://goproxy.cn,direct

问题

go env-w GOPROXY=https://goproxy.cn,direct
go env-w GOPRIVATE=*.gitlab.com,*.gitee.com
go env-w GOSUMDB=off

Go学习

测试

继承

  • 同包,默认继承
posted @ 2021-09-09 09:34  WANGHAO229  阅读(95)  评论(0)    收藏  举报