HUGO
Menu
GitHub 90234 stars Mastodon

encoding.HexDecode

Returns the hexadecimal decoding of the given content.
Syntax
encoding.HexDecode INPUT
Returns
string

Usage

The encoding.HexDecode function returns the hexadecimal decoding of the given content. The function throws an error if the input is not a valid hexadecimal string. Use the encoding.HexEncode function to reverse the operation.

Examples

{{ "48656c6c6f20776f726c64" | encoding.HexDecode }} → Hello world