Documentation ¶
Index ¶
Constants ¶
View Source
const ( Required = iota Int Float String JSON IP Match )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FloatValidator ¶
func (FloatValidator) Check ¶
func (v FloatValidator) Check(value interface{}) (bool, error)
type IPValidator ¶
type IPValidator struct { }
func (IPValidator) Check ¶
func (v IPValidator) Check(value interface{}) (bool, error)
type IntValidator ¶
func (IntValidator) Check ¶
func (v IntValidator) Check(value interface{}) (bool, error)
type JSONValidator ¶
type JSONValidator struct { }
func (JSONValidator) Check ¶
func (v JSONValidator) Check(value interface{}) (bool, error)
type MatchValidator ¶
type MatchValidator struct {
Pattern string
}
func (MatchValidator) Check ¶
func (v MatchValidator) Check(value interface{}) (bool, error)
type RequiredValidator ¶
type RequiredValidator struct { }
func (RequiredValidator) Check ¶
func (v RequiredValidator) Check(value interface{}) (bool, error)
type StringValidator ¶
func (StringValidator) Check ¶
func (v StringValidator) Check(value interface{}) (bool, error)
Click to show internal directories.
Click to hide internal directories.