Documentation ¶
Overview ¶
Package format implements useful string/byte formatting functions.
Package format implements useful string/byte formatting functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HexDump ¶
HexDump produces a wireshark-like hexdump, with an option to set the left and right delimiter used for the ascii section. This is a cheesy implementation using a regex to change the golang hexdump output.
func MakeEscapedString ¶
func MakeHexStream ¶
func MakePrintableString ¶
func TranslateHexCodes ¶
TranslateHexCodes will change instances of "\x41" in the input to the byte 'A' in the output, passing through other characters. This is a small subset of strconv.Unquote() for wireshark PSML data.
Types ¶
Click to show internal directories.
Click to hide internal directories.