<p>a small package for global event trigger in go lang. Some feed back on designs and code quality will be gladly appreciated.</p>
<p>Link: <a href="https://github.com/sadlil/go-trigger" rel="nofollow">https://github.com/sadlil/go-trigger</a></p>
<p>some advice needed in favor to the TODOs.
1. all the event were designed global with respect to keep this simple.
what about an instantaneous events, that binds on an struct instance?</p>
<ol>
<li><p>Return already type converted values from Fire(). i don't think this is literally possible to returned primitive types data. so it returns reflect.Value. instead of returning reflect.Value what about a Returned type? that also contains some helper.</p></li>
<li><p>Add support of Methods on structs events. adding a method that have a receiver struct. how can this be added?</p></li>
<li><p>Multiple event handler for a event. the complexity facing here is like handling the events params. any idea on those?</p></li>
</ol>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
0 回复
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传