Documentation
¶
Index ¶
- Constants
- func GetArrayFromCondition(condition string) ([]string, error)
- func GetConditionByType(conditionFull string, conditionType string) (string, error)
- func GetConditionType(s string) string
- func GetConditionsAndOrFromString(in string) ([]string, bool)
- func InterfaceFromString(in string, inType ValidatorType) (interface{}, error)
- type JsonMap
- type Validation
- type ValidatorMap
- type ValidatorType
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func GetArrayFromCondition ¶
func GetConditionByType ¶
func GetConditionType ¶
func InterfaceFromString ¶ added in v0.1.9
func InterfaceFromString(in string, inType ValidatorType) (interface{}, error)
Types ¶
type Validation ¶
type Validation struct {
Key string
Type ValidatorType
Conditions string
}
type ValidatorMap ¶
type ValidatorMap map[string]Validation
type ValidatorType ¶
type ValidatorType string
const ( String ValidatorType = "string" Int ValidatorType = "int" Float ValidatorType = "float" Bool ValidatorType = "bool" Map ValidatorType = "map" Time ValidatorType = "time" )
func TypeFromInterface ¶ added in v0.1.9
func TypeFromInterface(in interface{}) (ValidatorType, error)
Click to show internal directories.
Click to hide internal directories.