一、
二、内容
系统变量配置: 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
![image.png](https://upload-images.jianshu.io/upload_images/1456372-96a11987f253f836.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![image.png](https://upload-images.jianshu.io/upload_images/1456372-4db7b9847ff1fd8d.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)