Documentation ¶
Overview ¶
Package xxd implements the logic behind converting byte stream to hexadecimal dump. It can also convert a hexadecimal dump back to its original binary form. This functionality is otherwise provide by linux command line tool xxd.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InputParse ¶
func InputParse(s []byte, offset int, f *ParsedFlags, length int) string
Function to parse the input stream of bytes.
func NewFlags ¶
func NewFlags() (*Flags, *IsSetFlags, []string)
Function to parse flags from the command line.
Types ¶
type Flags ¶
type Flags struct { Endian bool GroupSize string Length string Columns string Seek string Revert bool }
Struct containing flag values as entered in the terminal.
e stands for little-endian output g stands for Group-Size l stands for the no of bytes to convert c stands for columns to print each line s stands for seek r stands for reverting from hex dump to original file
type IsSetFlags ¶
Struct to indicate whether a particular flag was used as options
Click to show internal directories.
Click to hide internal directories.