Partial response middleware for Gear.
go get -u github.com/teambition/gear-partial-response
API documentation can be found here: https://godoc.org/github.com/teambition/gear-partial-response
import (
"github.com/teambition/gear"
partial "github.com/teambition/gear-partial-response"
)
app := gear.New()
app.Set(gear.SetSender, partial.New(partial.Options{Query: "fields"}))
app.Use(func(ctx *gear.Context) error {
// ...
return ctx.Send(http.StatusOK, data)
})