Jsongo

xuanbao · · 479 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Hello guys, </p> <p>Just sharing the lib I created to simplify the construction of JsonObjects: <a href="https://github.com/ricardolonga/jsongo" rel="nofollow">https://github.com/ricardolonga/jsongo</a> </p> <p>PullRequests are welcome. </p> <p>A hug,</p> <hr/>**评论:**<br/><br/>chrj: <pre><p>Naming your receiver argument <code>this</code> is considered an antipattern in Go. I would probably name it <code>a</code> for <code>Array</code> and <code>o</code> for <code>Object</code>.</p></pre>Ainar-G: <pre><p>It&#39;s cool and all, but you better add a section to your README about why anyone should use this over <code>map[string]interface{}</code>. Because this will most probably be the first question people have in their mind.</p></pre>michaelbironneau: <pre><p>It would be helpful if you included a method to marshal your objects/arrays. Otherwise it really doesn&#39;t have that much to do with JSON.</p></pre>Bromlife: <pre><p>I don&#39;t understand how this actually simplifies the creation of JsonObjects.</p> <p>How is it any easier than map[string]interface{} or any more performant than creating a struct?</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

479 次点击  
加入收藏 微博
0 回复
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传