[go-nuts] Re: How do you test a server?

2017-07-23 Thread Brian Wolter
As others have noted, you can use `net/http/httptest`. I'm not personally a huge fan of that package, though. As a result, I wrote an HTTP testing tool to run API tests against my servers. Of course, it can be used to test against any HTTP service, but it does happen to be written in Go. Test

[go-nuts] [ANN] JSON encoder w/ support for runtime conditional field exclusion

2017-02-08 Thread Brian Wolter
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 cer