helloteemo / helloteemo.github.io

个人博客地址,可以前往 helloteemo.github.io 查看
3 stars 0 forks source link

通过函数传递解决Go循环引用 | 芒果zzZ #41

Open helloteemo opened 2 years ago

helloteemo commented 2 years ago

https://helloteemo.github.io/2022/02/13/Golang/%E9%80%9A%E8%BF%87%E5%87%BD%E6%95%B0%E4%BC%A0%E9%80%92%E8%A7%A3%E5%86%B3Go%E5%BE%AA%E7%8E%AF%E5%BC%95%E7%94%A8/#more

一个比较无耻的解决方案

zhouxuwen commented 2 years ago

既然保证了A包是基础包就不会出现循环引用的情况,这个问题感觉就是设计上的问题

zhouxuwen commented 2 years ago

你的文章好水啊,对得起天天打赏的我们吗

helloteemo commented 2 years ago

@zhouxuwen 你的文章好水啊,对得起天天打赏的我们吗

你有个锤捶的打赏

sicuni commented 2 years ago

好久没碰到这种关系了。写CURD都不太熟悉了