<p>I need to use client-go to get the state of deployment in k8s, but when json serialization is done, k8s is serialized by camel case by default, while I need to pass it to the front end in the form of underscore division. What do I need to do?</p>

Dom.Dou
<p>You can create a custom marshaling function for transforming the JSON output from camel case to snake case or you can use this package that does the exact same <a href="https://github.com/Rican7/conjson" rel="nofollow noreferrer">thing</a></p>
