Hey guys, I’ve written a drop-in replacement for the standard library JSON encoder which supports the conditional exclusion of fields at runtime based on an output role.
Basically, it allows you to model a struct once and, for example, selectively exclude sensitive fields when it's sent to certain roles, but include them when it's sent to others. Here's the repo, feedback is welcome: https://github.com/bww/go-json Brian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.