I had tried serval ways to manage my golang library and share them with others:
go get
One GOPATH in one computer,
Set GOPATH and GOROOT in /etc/bash.bashrc
The main problem is that `go get` is slow in china.
It works with vpn, but it is much slower than a single git project.
And setting up private golang library is also a burden.
one GOPATH one project
Put all code and dependence in one project.
Put all golang code into one git project.
May add a git project in sub directory,but also commit that code into root git project.
Use `kmg gorun` to work around GOPATH setting stuff.
I used to set GOPATH in each project,it is a burden for me to set GOPATH each time in command line,so I write a kmg gorun to work around this problem.
I put a `.kmg.yml` file in my project root path, so my tool can find where the GOPATH is.Then it can use go run or go test to do whatever i want.
I think it will be better to have something like `.kmg.yml` as a standard way.
Is there any standard way to setup GOPATH per project?