标签: go nsnotificationcenter
我有iOS开发背景,我正在学习Go语言。 我想知道Go中是否有类似于iOS中的NSNotificationCenter的内容?
所以说我想更新一些我无法直接访问的对象。有没有简单的方法向他们发送通知? 或者没有这样的模式,我需要以不同的方式做到这一点?
P.S。有关NSNotificationCenter的更多信息:http://nshipster.com/nsnotification-and-nsnotificationcenter/
答案 0 :(得分:0)
我认为你需要像https://github.com/asaskevich/EventBus