Go代码组织的最佳实践

huangapple go评论86阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2013年9月9日 23:33:42
  • 转载请务必保留本文链接:https://go.coder-hub.com/18701875.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定