Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
Similar to this issue and this commit I found, where you can overwrite the HTMLRender method to support custom template engines...
It would be useful to overwrite the JSONRender method so the functionality of the JSON marshaller can be customized for all responses written using c.JSON(). The only alternative is to implement json.Marshaler on each struct type, but I have a lot of response types.
Curious to know if this would be a supported effort, I'm happy to look into implementing this
Description
Similar to this issue and this commit I found, where you can overwrite the
HTMLRender
method to support custom template engines...It would be useful to overwrite the
JSONRender
method so the functionality of the JSON marshaller can be customized for all responses written usingc.JSON()
. The only alternative is to implementjson.Marshaler
on each struct type, but I have a lot of response types.Curious to know if this would be a supported effort, I'm happy to look into implementing this