goext/ginext/jsonFilter.go

10 lines
175 B
Go
Raw Permalink Normal View History

2024-08-02 16:19:21 +02:00
package ginext
import "github.com/gin-gonic/gin"
var jsonFilterKey = "goext.jsonfilter"
func SetJSONFilter(g *gin.Context, filter string) {
g.Set(jsonFilterKey, filter)
}