Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DateValue ¶
type DateValue struct { Value DateRange Modifier FilterModifier }
func NotDateVal ¶
NotDateVal is a shorthand method for creating a filter value with the Not modification.
type DateValues ¶
type DateValues []DateValue
func (DateValues) SplitByModifier ¶
func (f DateValues) SplitByModifier() map[FilterModifier][]DateRange
SplitByModifier divides up a Values into pieces based on what its modifier is.
func (DateValues) SplitValues ¶
func (f DateValues) SplitValues(partitionFn func(DateValue) string) DateMap
SplitValues divides a Values into a map, based on the given partitioning function
func (DateValues) Value ¶
func (f DateValues) Value(index int) DateRange
Value is a shorthand method for retriving the string at a particular index
func (DateValues) Values ¶
func (f DateValues) Values() []DateRange
Values converts a filter.Values into a string slice for easier consumption essentially [].map(fv => fv.Value) in javascript
type FilterModifier ¶
type FilterModifier int64
const ( Normal FilterModifier = 0 Not FilterModifier = 1 << (iota) )
type Value ¶
type Value struct { Value string Modifier FilterModifier }
type Values ¶
type Values []Value
func (Values) SplitByModifier ¶
func (f Values) SplitByModifier() map[FilterModifier][]string
SplitByModifier divides up a Values into pieces based on what its modifier is.
func (Values) SplitValues ¶
SplitValues divides a Values into a map, based on the given partitioning function
Click to show internal directories.
Click to hide internal directories.