<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'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't have that much to do with JSON.</p></pre>Bromlife: <pre><p>I don'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>