Backward
The Backward registry offers functions to maintain compatibility with older Sprig versions, ensuring legacy templates continue to work seamlessly after updates.
Last updated
The Backward registry offers functions to maintain compatibility with older Sprig versions, ensuring legacy templates continue to work seamlessly after updates.
Last updated
You can easily import all the functions from the backward
registry by including the following import statement in your code
The Fail
function creates an error with a specified message and returns a nil
pointer along with the error. It is generally used to indicate failure in functions that return both a pointer and an error.
[DEPRECATED] No replacement are scheduled yet. If you need this function, open an issue to clearly explain the usage.
The function parses a given URL string and returns a map containing its components, such as the scheme, host, path, query parameters, and more, allowing easy access and manipulation of the different parts of a URL.
[DEPRECATED] No replacement are scheduled yet. If you need this function, open an issue to clearly explain the usage.
The function constructs a URL string from a given map of URL components, assembling the various parts such as scheme, host, path, and query parameters into a complete URL.
[DEPRECATED] No replacement are scheduled yet. If you need this function, open an issue to clearly explain the usage.
The function returns a random IP address associated with a given hostname, providing a way to resolve a hostname to one of its corresponding IP addresses.
[DEPRECATED] No replacement are scheduled yet. If you need this function, open an issue to clearly explain the usage.
Signature
Must version
Signature
Must version
Signature
Must version
Signature
Must version