Zot.Utils (zot v0.19.0)
View SourcePrivate utility functions.
Summary
Functions
Retrieves the :coerce flag from the given options.
Compiles a glob pattern into an anchored regex.
Checks if the given value is an MFA tuple.
Checks if the given value is a relative date time tuple.
Checks if the given value is a valid path segment.
Parses an float from the given value.
Parses an integer from the given value.
Resolves the given value which can be a literal value, a function or an MFA tuple.
Pattern matches a Zot type struct, assigning its module to the given variable.
Functions
Retrieves the :coerce flag from the given options.
Compiles a glob pattern into an anchored regex.
* matches any run of characters short of a /, ? matches exactly
one of the same, ** also crosses slashes, [a-c] and [!a-c] are
character classes, and {jpg,png} matches either alternative.
Everything else means itself.
Checks if the given value is an MFA tuple.
Checks if the given value is a relative date time tuple.
Checks if the given value is a valid path segment.
Parses an float from the given value.
Parses an integer from the given value.
Resolves the given value which can be a literal value, a function or an MFA tuple.
Pattern matches a Zot type struct, assigning its module to the given variable.