pub fn printf(args: &[Value]) -> Result<Value, FuncError>Expand description
An implementation of golang’s fmt.Sprintf Limitations:
- float:
g,G, andbare weired and not implement yet
- pretty sure there are more
§Example
use gtmpl::template;
let equal = template(r#"{{ printf "%v %s %v" "Hello" . "!" }}"#, "world");
assert_eq!(&equal.unwrap(), "Hello world !");