Function
Arg | Description | Type |
---|---|---|
format | Format string to use | string (required) |
args | An array of elements to apply into the format string. | Any |
Format one or more items according to a format string.
This function is essentially a wrapper around Golang’s fmt.Sprintf() function and uses the same format specifiers.
Of note the following are very useful:
% x
applied on strings will hex print the string%T
will reveal the internal type of an object.%v
is the general purpose stringifier and can apply to strings, ints etc.