When using go-health together with gin-gonic I'm finding it hard to format the JSON output from NewJSONHandlerFunc().
Would it be possible to update the signature of NewJSONHandlerFunc() to include some kind of config? I don't really know what approach that would be the best, but some pseudo examples:
When using go-health together with gin-gonic I'm finding it hard to format the JSON output from
NewJSONHandlerFunc()
. Would it be possible to update the signature ofNewJSONHandlerFunc()
to include some kind of config? I don't really know what approach that would be the best, but some pseudo examples:Or something simple like:
Like I said, I don't know the best (go) approach for this. And if this is possible somehow already I would be happy for all the information I can get.
Thanks for a very nice project.