37

Go 语言如何解决代码耦合

 5 years ago
source link: https://juejin.im/post/5c5ae7fce51d457fc5647775
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
什么是耦合? 在软件中,衡量对象、包、函数任何两个部分相互依赖的程度叫做耦合。 例如下面的代码: type Config struct { DSN string MaxConnections int Timeout

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK