Documentation ¶
Index ¶
- Variables
- func MinLength(left, right int) (min int)
- func Ranges() []string
- type BaseIsCaseSensitive
- type BaseIsIgnoreCase
- type Compare
- func (it Compare) CsvString(values ...Compare) string
- func (it Compare) CsvStrings(values ...Compare) []string
- func (it Compare) Is(other Compare) bool
- func (it Compare) IsAnyOf(values ...Compare) bool
- func (it Compare) IsDefinedProperly() bool
- func (it Compare) IsEqual() bool
- func (it Compare) IsInconclusive() bool
- func (it Compare) IsInconclusiveOrNotEqual() bool
- func (it Compare) IsLeftGreater() bool
- func (it Compare) IsLeftGreaterEqual() bool
- func (it Compare) IsLeftGreaterOrGreaterEqualOrEqual() bool
- func (it Compare) IsLeftLess() bool
- func (it Compare) IsLeftLessEqual() bool
- func (it Compare) IsLeftLessOrLessEqualOrEqual() bool
- func (it Compare) IsNotEqual() bool
- func (it Compare) IsNotEqualLogically() bool
- func (it Compare) IsNotInconclusive() bool
- func (it Compare) MarshalJSON() ([]byte, error)
- func (it Compare) Name() string
- func (it Compare) NameValue() string
- func (it Compare) NumberJsonString() string
- func (it Compare) NumberString() string
- func (it Compare) OnlySupportedDirectErr(onlySupportedCompares ...Compare) error
- func (it Compare) OnlySupportedErr(message string, onlySupportedCompares ...Compare) error
- func (it Compare) OperatorShortForm() string
- func (it Compare) OperatorSymbol() string
- func (it Compare) SqlOperatorSymbol() string
- func (it Compare) String() string
- func (it Compare) StringValue() string
- func (it *Compare) UnmarshalJSON(data []byte) error
- func (it Compare) Value() byte
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CompareNames = [...]string{ Equal: "Equal", LeftGreater: "LeftGreater", LeftGreaterEqual: "LeftGreaterEqual", LeftLess: "LeftLess", LeftLessEqual: "LeftLessEqual", NotEqual: "NotEqual", Inconclusive: "Inconclusive", } CompareOperatorsSymbols = [...]string{ Equal: "=", LeftGreater: ">", LeftGreaterEqual: ">=", LeftLess: "<", LeftLessEqual: "<=", NotEqual: "!=", Inconclusive: "?!", } CompareOperatorsShotNames = [...]string{ Equal: "eq", LeftGreater: "gt", LeftGreaterEqual: "ge", LeftLess: "lt", LeftLessEqual: "le", NotEqual: "ne", Inconclusive: "i", } SqlCompareOperators = [...]string{ Equal: "=", LeftGreater: ">", LeftGreaterEqual: ">=", LeftLess: "<", LeftLessEqual: "<=", NotEqual: "<>", Inconclusive: "i", } RangesMap = map[string]Compare{ Equal.Name(): Equal, LeftGreater.Name(): LeftGreater, LeftGreaterEqual.Name(): LeftGreaterEqual, LeftLess.Name(): LeftLess, LeftLessEqual.Name(): LeftLessEqual, NotEqual.Name(): NotEqual, Inconclusive.Name(): Inconclusive, Equal.NumberString(): Equal, LeftGreater.NumberString(): LeftGreater, LeftGreaterEqual.NumberString(): LeftGreaterEqual, LeftLess.NumberString(): LeftLess, LeftLessEqual.NumberString(): LeftLessEqual, NotEqual.NumberString(): NotEqual, Inconclusive.NumberString(): Inconclusive, Equal.NumberJsonString(): Equal, LeftGreater.NumberJsonString(): LeftGreater, LeftGreaterEqual.NumberJsonString(): LeftGreaterEqual, LeftLess.NumberJsonString(): LeftLess, LeftLessEqual.NumberJsonString(): LeftLessEqual, NotEqual.NumberJsonString(): NotEqual, Inconclusive.NumberJsonString(): Inconclusive, Equal.OperatorSymbol(): Equal, LeftGreater.OperatorSymbol(): LeftGreater, LeftGreaterEqual.OperatorSymbol(): LeftGreaterEqual, LeftLess.OperatorSymbol(): LeftLess, LeftLessEqual.OperatorSymbol(): LeftLessEqual, NotEqual.OperatorSymbol(): NotEqual, Inconclusive.OperatorSymbol(): Inconclusive, Equal.OperatorShortForm(): Equal, LeftGreater.OperatorShortForm(): LeftGreater, LeftGreaterEqual.OperatorShortForm(): LeftGreaterEqual, LeftLess.OperatorShortForm(): LeftLess, LeftLessEqual.OperatorShortForm(): LeftLessEqual, NotEqual.OperatorShortForm(): NotEqual, Inconclusive.OperatorShortForm(): Inconclusive, } )
Functions ¶
Types ¶
type BaseIsCaseSensitive ¶ added in v0.8.0
type BaseIsCaseSensitive struct {
IsCaseSensitive bool `json:"IsCaseSensitive,omitempty"` // strict case compare
}
func (*BaseIsCaseSensitive) BaseIsIgnoreCase ¶ added in v0.8.0
func (it *BaseIsCaseSensitive) BaseIsIgnoreCase() BaseIsIgnoreCase
func (BaseIsCaseSensitive) Clone ¶ added in v0.9.5
func (it BaseIsCaseSensitive) Clone() BaseIsCaseSensitive
func (*BaseIsCaseSensitive) ClonePtr ¶ added in v0.9.5
func (it *BaseIsCaseSensitive) ClonePtr() *BaseIsCaseSensitive
func (*BaseIsCaseSensitive) IsIgnoreCase ¶ added in v0.8.0
func (it *BaseIsCaseSensitive) IsIgnoreCase() bool
type BaseIsIgnoreCase ¶ added in v0.8.0
type BaseIsIgnoreCase struct {
IsIgnoreCase bool `json:"IsCaseSensitive,omitempty"` // ignore case compare
}
func (*BaseIsIgnoreCase) BaseIsCaseSensitive ¶ added in v0.8.0
func (it *BaseIsIgnoreCase) BaseIsCaseSensitive() BaseIsCaseSensitive
func (BaseIsIgnoreCase) Clone ¶ added in v0.9.5
func (it BaseIsIgnoreCase) Clone() BaseIsIgnoreCase
func (*BaseIsIgnoreCase) ClonePtr ¶ added in v0.9.5
func (it *BaseIsIgnoreCase) ClonePtr() *BaseIsIgnoreCase
func (*BaseIsIgnoreCase) IsCaseSensitive ¶ added in v0.8.0
func (it *BaseIsIgnoreCase) IsCaseSensitive() bool
type Compare ¶
type Compare byte
func (Compare) CsvStrings ¶ added in v0.9.5
func (Compare) IsDefinedProperly ¶ added in v0.8.3
func (Compare) IsInconclusive ¶ added in v0.8.3
func (Compare) IsInconclusiveOrNotEqual ¶ added in v0.8.3
func (Compare) IsLeftGreater ¶
func (Compare) IsLeftGreaterEqual ¶
func (Compare) IsLeftGreaterOrGreaterEqualOrEqual ¶ added in v0.8.3
func (Compare) IsLeftLess ¶
func (Compare) IsLeftLessEqual ¶
func (Compare) IsLeftLessOrLessEqualOrEqual ¶ added in v0.8.3
func (Compare) IsNotEqual ¶ added in v0.3.8
func (Compare) IsNotEqualLogically ¶ added in v0.8.3
func (Compare) IsNotInconclusive ¶ added in v0.8.3
func (Compare) MarshalJSON ¶ added in v0.8.3
func (Compare) NumberJsonString ¶ added in v0.8.3
func (Compare) NumberString ¶ added in v0.8.3
func (Compare) OnlySupportedDirectErr ¶ added in v0.9.5
func (Compare) OnlySupportedErr ¶ added in v0.9.5
func (Compare) OperatorShortForm ¶ added in v0.8.3
func (Compare) OperatorSymbol ¶ added in v0.8.3
func (Compare) SqlOperatorSymbol ¶ added in v0.8.3
func (Compare) StringValue ¶
func (*Compare) UnmarshalJSON ¶ added in v0.8.3
Click to show internal directories.
Click to hide internal directories.