[]Function sprig::strings::trim_suffix

pub fn trim_suffix(args: &[Value]) -> Result<Value, String>

Golang's strings.TrimSuffix, but with the argument order reversed: trimSuffix "-" "ends-with-"