types

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetExactBytes

func GetExactBytes(fs *pflag.FlagSet, name string) (value []byte, set bool, err error)

GetExactBytes returns a value from a bytes flag.

func GetExactBytesSlice

func GetExactBytesSlice(fs *pflag.FlagSet, name string) (value [][]byte, set bool, err error)

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 EUI64

type EUI64 [8]byte

func GetEUI64

func GetEUI64(fs *pflag.FlagSet, name string) (value EUI64, set bool, err error)

func GetEUI64Slice

func GetEUI64Slice(fs *pflag.FlagSet, name string) (value []EUI64, set bool, err error)

func (EUI64) Marshal

func (t EUI64) Marshal() ([]byte, error)

func (*EUI64) MarshalTo

func (t *EUI64) MarshalTo(data []byte) (n int, err error)

func (*EUI64) Size

func (t *EUI64) Size() int

func (*EUI64) Unmarshal

func (t *EUI64) Unmarshal(data []byte) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL