美文网首页
idea with uber dig & fx

idea with uber dig & fx

作者: fstMoon | 来源:发表于2019-01-11 17:26 被阅读0次

Visualize Dependency graph

With uber fx use a dependency center, we can export dependency graph to a visual present format, like png or something else.

We can send an email with a dependency graph image weekly to everyone for module review from the big scene. Find problem ahead.

Check dependency & code rule

We can make some enhance rule according to framework layer. like:

  • handler can only import module, not import dao
  • module can only import dao
  • ....

Can achieve this use reflect and some go library.

TODO

get some inspire from google wire

相关文章

网友评论

      本文标题:idea with uber dig & fx

      本文链接:https://www.haomeiwen.com/subject/ilzxdqtx.html