Versions in this module Expand all Collapse all v0 v0.1.0 Jan 26, 2022 Changes in this version + var ErrInvalidIP = errors.New("invalid IP") + var ErrInvalidIPv4 = errors.New("invalid IPv4") + var ErrInvalidIPv6 = errors.New("invalid IPv6") + type Duration struct + func (d *Duration) UnmarshalJSON(b []byte) (err error) + func (d Duration) MarshalJSON() ([]byte, error) + type IP struct + func MustIP(value string) IP + func (ip *IP) UnmarshalJSON(data []byte) (err error) + func (ip IP) MarshalJSON() ([]byte, error) + func (ip IP) String() string + type IPv4 struct + func MustIPv4(value string) IPv4 + func (ip *IPv4) UnmarshalJSON(data []byte) (err error) + func (ip IPv4) MarshalJSON() ([]byte, error) + func (ip IPv4) String() string + type IPv6 struct + func MustIPv6(value string) IPv6 + func (ip *IPv6) UnmarshalJSON(data []byte) (err error) + func (ip IPv6) MarshalJSON() ([]byte, error) + func (ip IPv6) String() string + type MailAddress struct + func MustMailAddress(value string) MailAddress + func (m *MailAddress) UnmarshalJSON(data []byte) (err error) + func (m MailAddress) MarshalJSON() ([]byte, error) + func (m MailAddress) String() string + type POSIXRegexp struct + func MustPOSIXRegexp(value string) POSIXRegexp + func (r *POSIXRegexp) UnmarshalJSON(data []byte) (err error) + func (r POSIXRegexp) MarshalJSON() ([]byte, error) + func (r POSIXRegexp) String() string + type Port struct + Port uint16 + func (p *Port) UnmarshalJSON(b []byte) (err error) + func (p Port) MarshalJSON() ([]byte, error) + func (p Port) String() string + type Regexp struct + func MustRegexp(value string) Regexp + func (r *Regexp) UnmarshalJSON(data []byte) (err error) + func (r Regexp) MarshalJSON() ([]byte, error) + func (r Regexp) String() string + type URL struct + func MustURL(value string) URL + func (u *URL) UnmarshalJSON(data []byte) (err error) + func (u URL) MarshalJSON() ([]byte, error) + func (u URL) String() string