These are chat archives for gin-gonic/gin

26th
Jun 2015
DenisNeustroev
@DenisNeustroev
Jun 26 2015 21:35
Is it possible to extend Context through a middleware with custom field?
I need to use something like that:
func (c *gin.Context) {
    data, err := c.db.query("smth")
}
// or
func (c *gin.Context, db *db) {
    data, err := db.query("smth")
}