This is a creation in Article, where the information may have evolved or changed.
Project Organizational Structure
yishiyaonie:go liuhanlin$ pwd/Users/liuhanlin/qiniuwork/goyishiyaonie:go liuhanlin$ lsaone public qbox
So set the contents of Gopath to pwd:/users/liuhanlin/qiniuwork/go
Aone is a new project, public is the common Go library, and QBox is a third-party library.
The wording of the promotion
yishiyaonie:go liuhanlin$ $GOPATH-bash: /Users/liuhanlin/qiniuwork/go/public:/Users/liuhanlin/qiniuwork/go/qbox/base/qiniu:/Users/liuhanlin/qiniuwork/go/qbox/base/docs:/Users/liuhanlin/qiniuwork/go/qbox/base/com:/Users/liuhanlin/qiniuwork/go/qbox/base/biz:/Users/liuhanlin/qiniuwork/go/qbox/base/portal:/Users/liuhanlin/qiniuwork/go/qbox/base/cgo:/Users/liuhanlin/qiniuwork/go/qbox/base/mockacc:/Users/liuhanlin/qiniuwork/go/aone: No such file or directory
Use your public library as the first, so that when you go get, the public library will be installed in these places, other libraries, linked to its tail, guaranteed to be found in the Gopath.
The env.sh added to the trailer are written in the following way:
yishiyaonie:aone liuhanlin$ cat env.sh export Gopath= $GOPATH : $AONEROOT /aoneexport path= $PATH : $ Aoneroot /aone/bin