Answers for "how to set gopath/bin linux"

0

how to change gopath

export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
Posted by: Guest on January-21-2021
0

how to set gopath/bin linux

## 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
Posted by: Guest on April-02-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language