Documentation ¶
Index ¶
- Constants
- func Build(options ...Options) echo.FormDataFilter
- func BuildWithKeyNormalizer(keyNormalizer func(string) string, options ...Options) echo.FormDataFilter
- type Data
- type Filter
- type Filters
- type Options
- func DateToTimestamp(field string, layouts ...string) Options
- func EndDateToTimestamp(field string, layouts ...string) Options
- func Exclude(fieldNames ...string) Options
- func Format(field string, formatter func([]string) []string) Options
- func Include(fieldNames ...string) Options
- func JoinValues(field string) Options
- func SplitValues(field string, seperators ...string) Options
- func StartDateToTimestamp(field string, layouts ...string) Options
- func TimestampToDate(field string, layouts ...string) Options
- type OptionsList
- func (a *OptionsList) Add(options ...Options) *OptionsList
- func (a *OptionsList) AppendTo(other *OptionsList) *OptionsList
- func (a *OptionsList) Build() echo.FormDataFilter
- func (a *OptionsList) Reset(options ...Options) *OptionsList
- func (a *OptionsList) Size() int
- func (a *OptionsList) Slice() OptionsList
Constants ¶
View Source
const All = `*`
Variables ¶
This section is empty.
Functions ¶
func Build ¶
func Build(options ...Options) echo.FormDataFilter
func BuildWithKeyNormalizer ¶
func BuildWithKeyNormalizer(keyNormalizer func(string) string, options ...Options) echo.FormDataFilter
Types ¶
type Data ¶
func (*Data) NormalizedKey ¶
type Options ¶
func DateToTimestamp ¶
DateToTimestamp 日期转时间戳
func EndDateToTimestamp ¶
EndDateToTimestamp 结束日期(当天的最后一秒)转时间戳
func JoinValues ¶
func SplitValues ¶
func StartDateToTimestamp ¶
StartDateToTimestamp 起始日期(当天的零点)转时间戳
func TimestampToDate ¶
TimestampToDate 时间戳转日期
type OptionsList ¶
type OptionsList []Options
func New ¶
func New() *OptionsList
func (*OptionsList) Add ¶
func (a *OptionsList) Add(options ...Options) *OptionsList
func (*OptionsList) AppendTo ¶
func (a *OptionsList) AppendTo(other *OptionsList) *OptionsList
func (*OptionsList) Build ¶
func (a *OptionsList) Build() echo.FormDataFilter
func (*OptionsList) Reset ¶
func (a *OptionsList) Reset(options ...Options) *OptionsList
func (*OptionsList) Size ¶
func (a *OptionsList) Size() int
func (*OptionsList) Slice ¶
func (a *OptionsList) Slice() OptionsList
Click to show internal directories.
Click to hide internal directories.