<p><a href="https://github.com/heliorosa/structtools" rel="nofollow">structtools</a> contains the following functions:</p>
<ul>
<li>ToMap(), FromMap() and AddToMap - copy struct fields to/from a map[string]interface{} (tag aware)</li>
<li>Marshal(), Unmarshal(), MarshalOnly() and UnmarshalOnly() - binary marshal/unmarshal an interface{} to/from a []byte</li>
<li>Encoder and Decoder types also included</li>
</ul>
<hr/>**评论:**<br/><br/>olebedev: <pre><p>It would be good to see any examples at README.</p></pre>hipone: <pre><p>There are examples in the repository, but they're badly named, so they don't show up in godoc.</p></pre>
![](https://static.golangjob.cn/static/img/banner.png)