Documentation ¶
Index ¶
- func GetExactBytes(fs *pflag.FlagSet, name string) (value []byte, set bool, err error)
- func GetExactBytesSlice(fs *pflag.FlagSet, name string) (value [][]byte, set bool, err error)
- func New8BytesFlag(name, usage string, opts ...flagsplugin.FlagOption) *pflag.Flag
- func New8BytesSliceFlag(name, usage string, opts ...flagsplugin.FlagOption) *pflag.Flag
- type EUI64
- type ExactBytesSliceValue
- type ExactBytesValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetExactBytes ¶
GetExactBytes returns a value from a bytes flag.
func GetExactBytesSlice ¶
GetExactBytesSlice returns a value from a byte flag.
func New8BytesFlag ¶
func New8BytesFlag(name, usage string, opts ...flagsplugin.FlagOption) *pflag.Flag
New8BytesFlag defines a new flag that holds a byte array of length 8.
func New8BytesSliceFlag ¶
func New8BytesSliceFlag(name, usage string, opts ...flagsplugin.FlagOption) *pflag.Flag
New8BytesSliceFlag defines a new flag that holds a slice of byte arrays of length 8.
Types ¶
type ExactBytesSliceValue ¶
type ExactBytesSliceValue struct { Values []ExactBytesValue // contains filtered or unexported fields }
ExactBytesSliceValue implements pflag.Value interface.
func (*ExactBytesSliceValue) Set ¶
func (ebv *ExactBytesSliceValue) Set(s string) error
Set implements pflag.Value interface.
func (*ExactBytesSliceValue) String ¶
func (ebv *ExactBytesSliceValue) String() string
String implements pflag.Value interface.
func (*ExactBytesSliceValue) Type ¶
func (ebv *ExactBytesSliceValue) Type() string
Type implements pflag.Value interface.
type ExactBytesValue ¶
type ExactBytesValue struct { Value []byte // contains filtered or unexported fields }
ExactBytesValue implements pflag.Value interface.
func (*ExactBytesValue) Set ¶
func (ebv *ExactBytesValue) Set(s string) error
Set implements pflag.Value interface.
func (*ExactBytesValue) String ¶
func (ebv *ExactBytesValue) String() string
String implements pflag.Value interface.
func (*ExactBytesValue) Type ¶
func (ebv *ExactBytesValue) Type() string
Type implements pflag.Value interface.
Click to show internal directories.
Click to hide internal directories.