Kitt.Util.get_format

You're seeing just the function get_format, go back to Kitt.Util module for more information.

Specs

get_format(keyword()) :: :hex | :binary | {:error, term()}

Parses a keyword list of options and returns the desired output format for an encode function or the expected input format for a decode function.

Defaults to hexadecimal format via the :hex atom if the :format option is not supplied.

Returns an {:error, reason} if an unsupported value is supplied for the :format option.