# Functions
MustParsePath behaves like ParsePath but will return ErrNotAUrl if the value is not a URL with a scheme that can be parsed by this function.
Parse an absolute timestamp from the provided arbitrary value (string or numeric value).
Parses the specified value as one or more addresses, separated by commas.
Parses the provided arbitrary value as a boolean-like value.
ParseCapacityString parses a capacity string and returns the number of bytes it represents.
Parses the provided string-like value as a comma-separated list of values.
ParseDirectIntSlice behaves similarly to ParseInt, but accepts typed slices, returning a slice of int64s.
Parse a duration from an arbitrary value (a string or numeric value) into a time.Duration; when units are missing (such as when a numeric type is provided), the duration is assumed to be in seconds.
ParseInt takes an arbitrary value (either a string or numeric type) and parses it as an int64 value.
ParseIntSlice is a helper function for handling upgrades of optional slices; that is, if the API accepts a type similar to <int|[]int>, nicely handle the common cases of providing only an int-ish, providing an actual slice of int-ishes, or providing a comma-separated list of numbers.
ParsePath parses a URL with schemes file://, env://, or any other.
Parses the provided arbitrary value as a string.
Parses the specified arbitrary value (see ParseInt), ensuring that the resulting value is within the range for an int value.
Parses the provided arbitrary value (see ParseInt), ensuring it is within the specified range (inclusive of bounds).
Parses the provided arbitrary value (see ParseIntSlice) into a slice of int values, ensuring the each resulting value in the slice is within the range for an int value.
Parses the provided arbitrary value (see ParseIntSlice) into a slice of int64 values, ensuring each is within the specified range (inclusive of bounds).