英文:
Go code organisation best practice
问题
阅读完《如何编写Go代码》和观看了这个《screencast》之后,我只想问一下:
- 在
GOPATH
环境变量中拥有多个目录是否被认为是一种良好的实践?
英文:
After reading How to Write Go Code, and watching this screencast, I just want to ask:
- Is having multiple directories in the
GOPATH
variable environment considered a good practice ?
答案1
得分: 3
这不是关于好坏实践的问题,而是关于不同需求的问题。许多开发者可以使用GOPATH中的单个路径。而其他人有特殊需求,对于他们来说,多路径的GOPATH是一种解决方案。
英文:
It's not about good or bad practice. It's about different needs. Many developers can live with a single path in their GOPATH. Others have special needs and for them the multiple-path GOPATH is a solution.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论