customflags

package
v3.24.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 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)

func GetExactBytesSlice

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

func New16BytesFlag

func New16BytesFlag(name, usage string, opts ...flagsplugin.FlagOption) *pflag.Flag

func New2BytesFlag added in v3.21.0

func New2BytesFlag(name, usage string, opts ...flagsplugin.FlagOption) *pflag.Flag

func New3BytesFlag

func New3BytesFlag(name, usage string, opts ...flagsplugin.FlagOption) *pflag.Flag

func New4BytesFlag

func New4BytesFlag(name, usage string, opts ...flagsplugin.FlagOption) *pflag.Flag

func New8BytesFlag

func New8BytesFlag(name, usage string, opts ...flagsplugin.FlagOption) *pflag.Flag

func New8BytesSliceFlag

func New8BytesSliceFlag(name, usage string, opts ...flagsplugin.FlagOption) *pflag.Flag

Types

type ExactBytesSliceValue

type ExactBytesSliceValue struct {
	Values []ExactBytesValue
	// contains filtered or unexported fields
}

func (*ExactBytesSliceValue) Set

func (ebv *ExactBytesSliceValue) Set(s string) error

func (*ExactBytesSliceValue) String

func (ebv *ExactBytesSliceValue) String() string

func (*ExactBytesSliceValue) Type

func (ebv *ExactBytesSliceValue) Type() string

type ExactBytesValue

type ExactBytesValue struct {
	Value []byte
	// contains filtered or unexported fields
}

func (*ExactBytesValue) Set

func (ebv *ExactBytesValue) Set(s string) error

func (*ExactBytesValue) String

func (ebv *ExactBytesValue) String() string

func (*ExactBytesValue) Type

func (ebv *ExactBytesValue) Type() string

Jump to

Keyboard shortcuts

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