Backward
The Backward registry offers functions to maintain compatibility with older Sprig versions, ensuring legacy templates continue to work seamlessly after updates.
Deprecated functions
fail ⚠️
{{ fail "Operation failed" }} // Error with "Operation failed"urlParse ⚠️
{{ "https://example.com/path?query=1#fragment" | urlParse }}
// Output: map[fragment:fragment host:example.com hostname:example.com path:path query:query scheme:https]urlJoin ⚠️
getHostByName⚠️
Last updated