Documentation ¶
Index ¶
- func DeepEqual(s interface{}, c interface{}) bool
- func IsEmpty(value interface{}) bool
- func IsNil(value interface{}) (interface{}, bool)
- func LengthOf(value interface{}) (int, error)
- func NOE(value interface{}) bool
- func NewInternalError(err error) *internalError
- func NewStructValidationError() *structValidationError
- func NewValidationError(fieldName, jsonName, msg string) *validationError
- func ToFloat64(v interface{}) (float64, error)
- func ToInt64(v interface{}) (int64, error)
- func ToString(value interface{}) (string, error)
- func ToUInt64(v interface{}) (uint64, error)
- type FieldableError
- type InternalError
- type IterableError
- type Orwell
- func (*Orwell) DivBy(div int) *divBy
- func (*Orwell) Email(doLookUp bool) *email
- func (o *Orwell) FieldRules(field interface{}, rules ...Rule) *fieldRules
- func (*Orwell) In(args ...interface{}) *in
- func (*Orwell) LengthMax(max int) *lengthMax
- func (*Orwell) LengthMin(min int) *lengthMin
- func (*Orwell) Match(arg string) *match
- func (*Orwell) Max(arg int) *max
- func (*Orwell) Min(arg int) *min
- func (*Orwell) Required() *required
- func (o *Orwell) Validate(v interface{}, rules ...Rule) error
- func (o *Orwell) ValidateStruct(structPtr interface{}, fieldRules ...*fieldRules) error
- func (*Orwell) XAnd(and interface{}) *xAnd
- func (*Orwell) XAndOr(and interface{}, ors ...interface{}) *xAndOr
- func (*Orwell) XGt(xv interface{}, gt int) *xGt
- func (*Orwell) XGtAndOr(gtField interface{}, gtValue int, and interface{}, ors ...interface{}) *xGtAndOr
- func (*Orwell) XGtEql(gtField interface{}, gtValue int, eqlField interface{}, eqlValue interface{}) *xGtEql
- func (*Orwell) XGtEqlOr(gtField interface{}, gtValue int, eqlField interface{}, eqlValue interface{}, ...) *xGtEqlOr
- func (*Orwell) XGtOr(xv interface{}, gt int, ors ...interface{}) *xGtOr
- func (*Orwell) XLt(xv interface{}, lt int) *xLt
- func (*Orwell) XLtOr(xv interface{}, lt int, ors ...interface{}) *xLtOr
- func (*Orwell) XNor(nors ...interface{}) *xNor
- func (*Orwell) XNot(not interface{}) *xNot
- func (*Orwell) XOr(ors ...interface{}) *xOr
- type Rule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInternalError ¶
func NewInternalError(err error) *internalError
func NewStructValidationError ¶
func NewStructValidationError() *structValidationError
func NewValidationError ¶
func NewValidationError(fieldName, jsonName, msg string) *validationError
NewValidationError func
Types ¶
type FieldableError ¶
FieldableError interface
type InternalError ¶
InternalError interface
type IterableError ¶
IterableError interface
type Orwell ¶ added in v0.0.3
type Orwell struct{}
Orwell struct
func (*Orwell) FieldRules ¶ added in v0.0.3
FieldRules func
func (*Orwell) ValidateStruct ¶ added in v0.0.3
ValidateStruct func
func (*Orwell) XAndOr ¶ added in v0.0.3
func (*Orwell) XAndOr(and interface{}, ors ...interface{}) *xAndOr
XAndOr func
func (*Orwell) XGtAndOr ¶ added in v0.0.94
func (*Orwell) XGtAndOr(gtField interface{}, gtValue int, and interface{}, ors ...interface{}) *xGtAndOr
XGtAndOr func
func (*Orwell) XGtEql ¶ added in v0.0.93
func (*Orwell) XGtEql(gtField interface{}, gtValue int, eqlField interface{}, eqlValue interface{}) *xGtEql
XGtEql func
func (*Orwell) XGtEqlOr ¶ added in v0.0.93
func (*Orwell) XGtEqlOr(gtField interface{}, gtValue int, eqlField interface{}, eqlValue interface{}, ors ...interface{}) *xGtEqlOr
XGtEqlOr func
Click to show internal directories.
Click to hide internal directories.