一、
二、内容



系统变量配置: vim ~/.bash_profile
export GOPATH=/mouse/study/goSpace/goWorkSpace:/mouse/study/goSpace/goTestSpace
export GOBIN=${GOPATH//://bin:}/bin
export PATH=$PATH:$GOBIN
export REDISPATH=/usr/local/redis-5.0.2/bin
source ~/.bash_profile
src 存放源代码(比如:.go .c .h .s等)
pkg 编译后生成的文件(比如:.a)
bin 编译后生成的可执行文件(为了方便,可以把此目录加入到 {GOPATH//://bin:}/bin添加所有的bin目录
一些配置的说明可以看这里
三、说明
export GOPATH=/mouse/study/goSpace/goWorkSpace:/mouse/study/goSpace/goTestSpace
export GOBIN=${GOPATH//://bin:}/bin
export PATH=$PATH:$GOBIN
``
go get github.com/beego/bee


网友评论