我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

高朗的通知中心

I have an iOS development background and I am studying the Go language. I would like to know if there is something in Go similar to NSNotificationCenter in iOS?

So say I want to update a couple of objects that I don't have direct access to. Is there an easy way to send notification to them? Or there is no such pattern and I need to do it in different way?

P.S. More info about NSNotificationCenter: http://nshipster.com/nsnotification-and-nsnotificationcenter/

I think you need something like https://github.com/asaskevich/EventBus

近期文章

  • 插入MongoDB并存储ObjectID?
  • 如何将Samba服务器位置用于GOPATH?
  • 无需睡眠即可在Golang中测试Elasticsearch
  • 将uint32转换为字符串并添加前导0
  • Go中的Python列表理解
  • 转到Web服务-将tar.gz文件作为请求正文
  • 如何从Golang服务器获得代码覆盖率?
  • 已声明且未在条件语句中使用的变量
  • 无法在App Engine中创建签名的URL
  • 向分区的BigQuery表添加数据并查询
  • 如何在GO中的多返回函数中仅返回一个变量?
  • 在upsert中使用mgo聚合迭代器数据而无需拆封
  • 无法启动进程:字节0x0处的记录中无效的幻数Delve Golang
  • C字符名称[8]到GoLang名称[8]字节
  • 具有可选计数的Golang数据存储区查询
  • Golang:将Gin与UDP服务器混合
  • 去胡子怎么输出“%”?
  • 如何在golang模板中转义特殊字符(<>&'“除外)?
  • 类型断言和接口
  • 循环添加条目到地图

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华