|
|
|
|
|
by dengnan
4064 days ago
|
|
Normally, when I see a directory named "src/" in a Go project's repo, it usually means the project is not quite idiomatic to Go. To quote from Go's blog post [0]: Sometimes people set GOPATH to the root of their source repository and put their packages in directories relative to the repository root, such as "src/my/package". On one hand, this keeps the import paths short ("my/package" instead of "github.com/me/project/my/package"), but on the other it breaks go get and forces users to re-set their GOPATH to use the package. Don't do this. And this project is currently practicing the anti-pattern mentioned above. 0. http://blog.golang.org/organizing-go-code Edit: format |
|