用目录结构表示go包依赖关系

前端之家收集整理的这篇文章主要介绍了用目录结构表示go包依赖关系前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

用目录结构表示go包依赖关系

(金庆的专栏 2018.6)

摘自:
https://www.ardanlabs.com/blog/2017/02/package-oriented-design.html

If a package wants to import another package at the same level:

  • Question the current design choices of these packages.
  • If reasonable,move the package inside the source tree for the package that wants to import it.
  • Use the source tree to show the dependency relationships.
原文链接:https://www.f2er.com/javaschema/282156.html

猜你在找的设计模式相关文章