📜  如何设置 gopath bin linux - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:41.594000             🧑  作者: Mango

代码示例2
## open your favorite code editor
vim ~/.bashrc
## paste this sample code like this
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
## after changes file .bashrc and saved changes
source ~/.bashrc
## and close your terminal and open again
## success and this work
## test get package from internet
go get github.com/codegangsta/gin
gin --help