Documentation ¶
Overview ¶
Package cmdline implements command-line utilities for tools.
Index ¶
Constants ¶
View Source
const ( // Stringy indicates the input is coming from an argument string. // "auto" behavior prefers hexadecimal. Stringy = iota // Filey indicates the input is coming from a file. // "auto" behavior prefers binary. Filey )
Variables ¶
This section is empty.
Functions ¶
func Bytes ¶
Bytes is a flag.Func parsing function that translates a string into a specific byte-width array.
A byte string can be represented as * hexadecimal encoded string if -inform=hex or -inform=auto. * base64 if -inform=base64 or -inform=auto
Hex string decoding is attempted first with auto. The base64 encoding grammar intersects with the hex encoding grammar, so -inform=auto can misbehave.
Types ¶
Click to show internal directories.
Click to hide internal directories.