Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field struct { Name string // contains filtered or unexported fields }
func (*Field) Int64 ¶
func (f *Field) Int64(v int64) *Int64Field
func (*Field) RequiredErr ¶
func (f *Field) RequiredErr()
func (*Field) String ¶
func (f *Field) String(v string) *StringField
type FieldErr ¶
type FieldErr struct { // The name of the struct field with the error. Field string `json:"field"` // The name of the validation. Tag string `json:"tag"` // The human readable error. Msg string `json:"msg"` }
func NewFieldError ¶
func (*FieldErr) StatusCode ¶
StatusCode implemented to satisfy HTTPErr
type Int64Field ¶
func (*Int64Field) Equal ¶
func (f *Int64Field) Equal(v int64) *Int64Field
func (*Int64Field) Required ¶
func (f *Int64Field) Required() *Int64Field
type StringField ¶
func (*StringField) Enum ¶
func (f *StringField) Enum(vals []string) *StringField
func (*StringField) Equal ¶
func (f *StringField) Equal(v string) *StringField
func (*StringField) Required ¶
func (f *StringField) Required() *StringField
Click to show internal directories.
Click to hide internal directories.