Documentation ¶
Index ¶
- func ParseAbsoluteTime(in interface{}) (time.Time, error)
- func ParseAddrs(addrs interface{}) ([]*sockaddr.SockAddrMarshaler, error)
- func ParseBool(in interface{}) (bool, error)
- func ParseCapacityString(in interface{}) (uint64, error)
- func ParseCommaStringSlice(in interface{}) ([]string, error)
- func ParseDurationSecond(in interface{}) (time.Duration, error)
- func ParseInt(in interface{}) (int64, error)
- func ParseString(in interface{}) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseAbsoluteTime ¶ added in v0.2.0
func ParseAddrs ¶
func ParseAddrs(addrs interface{}) ([]*sockaddr.SockAddrMarshaler, error)
func ParseCapacityString ¶ added in v0.2.0
ParseCapacityString parses a capacity string and returns the number of bytes it represents. Capacity strings are things like 5gib or 10MB. Supported prefixes are kb, kib, mb, mib, gb, gib, tb, tib, which are not case sensitive. If no prefix is present, the number is assumed to be in bytes already.
func ParseCommaStringSlice ¶
func ParseDurationSecond ¶
func ParseString ¶ added in v0.2.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.