flags

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Enum

type Enum struct {
	Choices []string

	Value string
	Text  string
}

Enum is a `flag.Value` for one-of-a-fixed-set string arguments. The value of the `Choices` field defines the valid choices. If `CaseSensitive` is set to `true` (default `false`), the comparison is case-sensitive.

func (*Enum) Set

func (fv *Enum) Set(v string) error

Set is flag.Value.Set

func (*Enum) String

func (fv *Enum) String() string

type FileFlag

type FileFlag struct {
	// contains filtered or unexported fields
}

func (*FileFlag) Set

func (f *FileFlag) Set(v string) (err error)

func (*FileFlag) String

func (f *FileFlag) String() string

type Key

type Key struct {
	// contains filtered or unexported fields
}

func (*Key) Bytes

func (f *Key) Bytes() []byte

func (*Key) Set

func (f *Key) Set(v string) (err error)

func (*Key) String

func (f *Key) String() string

type Namespace

type Namespace struct {
	// contains filtered or unexported fields
}

func (*Namespace) Bytes

func (f *Namespace) Bytes() []byte

func (*Namespace) Set

func (f *Namespace) Set(v string) (err error)

func (*Namespace) String

func (f *Namespace) String() string

type Store

type Store struct {
	BaseDir      string
	MasterSecret string
	// contains filtered or unexported fields
}

func (*Store) Connect

func (f *Store) Connect() (kv.Store, error)

func (*Store) Set

func (f *Store) Set(v string) (err error)

func (*Store) String

func (f *Store) String() string

type StringList

type StringList struct {
	// contains filtered or unexported fields
}

func (*StringList) Set

func (f *StringList) Set(v string) error

func (*StringList) String

func (f *StringList) String() string

func (*StringList) Values

func (f *StringList) Values() []string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳