https://github.com/collabh/go-playgrond
go Quick Start
https://github.com/collabh/go-playgrond
Last synced: 8 months ago
JSON representation
go Quick Start
- Host: GitHub
- URL: https://github.com/collabh/go-playgrond
- Owner: collabH
- Created: 2023-08-30T11:23:16.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-06T12:56:42.000Z (almost 3 years ago)
- Last Synced: 2025-01-17T06:07:34.875Z (over 1 year ago)
- Language: Go
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-playgroup
go Quick Start
# build env
## go lib install
```shell
# brew查询go是否存在
brew search go
# 安装go
brew install go
# 配置go环境变量
vim ~/.bash
vim ~/.zshrc
# GOROOT
export GOROOT=/opt/homebrew/Cellar/go/1.21.0/libexec
#GOPATH root bin
export GOBIN=$GOROOT/bin
export PATH=$PATH:$GOBIN
#GOPATH
export GOPATH=$HOME/go
#GOPATH bin
export PATH=$PATH:$GOPATH/bin
```
## go依赖管理工具安装
```shell
# 启动go默认版本管理工具
export GO111MODULE=on
# 设置goproxy
export GOPROXY=https://goproxy.cn
```