Versions in this module Expand all Collapse all v0 v0.0.1 Oct 16, 2022 Changes in this version + var ErrValueTrimSpace = errors.New("value should not start or end with whitespace") + type Binary struct + Default bool + func (b Binary) StringValue(input interface{}) (string, bool) + func (b Binary) Type() (reflect.Type, bool) + func (b Binary) ValidateValue(input string) (interface{}, error) + type Date struct + func (d Date) StringValue(input interface{}) (string, bool) + func (d Date) Type() (reflect.Type, bool) + func (d Date) ValidateValue(input string) (interface{}, error) + type DateTime struct + func (d DateTime) StringValue(input interface{}) (string, bool) + func (d DateTime) Type() (reflect.Type, bool) + func (d DateTime) ValidateValue(input string) (interface{}, error) + type DurationGo struct + func (d DurationGo) StringValue(input interface{}) (string, bool) + func (d DurationGo) Type() (reflect.Type, bool) + func (d DurationGo) ValidateValue(input string) (interface{}, error) + type DurationRFC3339 struct + func (d DurationRFC3339) StringValue(input interface{}) (string, bool) + func (d DurationRFC3339) Type() (reflect.Type, bool) + func (d DurationRFC3339) ValidateValue(input string) (interface{}, error) + type Email struct + Default bool + func (e Email) StringValue(input interface{}) (string, bool) + func (e Email) Type() (reflect.Type, bool) + func (e Email) ValidateValue(input string) (interface{}, error) + type Hostname struct + func (h Hostname) StringValue(input interface{}) (string, bool) + func (h Hostname) Type() (reflect.Type, bool) + func (h Hostname) ValidateValue(input string) (interface{}, error) + type IP struct + AllowIPv4 bool + AllowIPv6 bool + Default bool + func (i IP) StringValue(input interface{}) (string, bool) + func (i IP) Type() (reflect.Type, bool) + func (i IP) ValidateValue(input string) (interface{}, error) + type IPCIDR struct + AllowIPv4 bool + AllowIPv6 bool + Default bool + func (i IPCIDR) StringValue(input interface{}) (string, bool) + func (i IPCIDR) Type() (reflect.Type, bool) + func (i IPCIDR) ValidateValue(input string) (interface{}, error) + type Regex struct + func (r Regex) StringValue(input interface{}) (string, bool) + func (r Regex) Type() (reflect.Type, bool) + func (r Regex) ValidateValue(input string) (interface{}, error) + type String struct + func (s String) StringValue(input interface{}) (string, bool) + func (s String) Type() (reflect.Type, bool) + func (s String) ValidateValue(input string) (interface{}, error) + type Time struct + func (t Time) StringValue(input interface{}) (string, bool) + func (t Time) Type() (reflect.Type, bool) + func (t Time) ValidateValue(input string) (interface{}, error) + type URI struct + Default bool + RequireScheme bool + func (u URI) StringValue(input interface{}) (string, bool) + func (u URI) Type() (reflect.Type, bool) + func (u URI) ValidateValue(input string) (interface{}, error) + type UUID struct + func (u UUID) StringValue(input interface{}) (string, bool) + func (u UUID) Type() (reflect.Type, bool) + func (u UUID) ValidateValue(input string) (interface{}, error)