Documentation
¶
Index ¶
- func CheckArray(a reflect.Value, c []string, or bool) error
- func CheckFloat(f float64, c []string, or bool) error
- func CheckInt(i int, c []string, or bool) error
- func CheckMap(a reflect.Value, c []string, or bool) error
- func CheckString(s string, c []string, or bool) error
- func CheckTime(t time.Time, c []string, or bool) error
- func ValidateGroup(groups map[string]string, groupSize map[string]int, ...) error
- func ValueContains(reflectValue reflect.Value, contain string) (string, error)
- func ValueFrom(reflectValue reflect.Value, from []string, shouldFind bool) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateGroup ¶
func ValueContains ¶
ValueContains checks, if the [reflectValue] contains [contain].
func ValueFrom ¶
ValueFrom checks, if the [reflectValue] consists of only ([shouldFind] == true)/of none ([shouldFind] == false) of the values from [from]. If a value is not found with [shouldFind] == true the missing value is given back. If a value is found with [shouldFind] == false the value found is given back.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.