flag

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCLIFlags

func CreateCLIFlags(flags map[string]*TenFlag) error

func Parse

func Parse()

Types

type TenFlag

type TenFlag struct {
	Name         string
	Value        any
	FlagType     string
	Description  string
	DefaultValue any
}

func NewBoolFlag

func NewBoolFlag(name string, defaultValue bool, description string) *TenFlag

func NewInt64Flag

func NewInt64Flag(name string, defaultValue int64, description string) *TenFlag

func NewIntFlag

func NewIntFlag(name string, defaultValue int, description string) *TenFlag

func NewStringFlag

func NewStringFlag(name, defaultValue, description string) *TenFlag

func NewUint64Flag

func NewUint64Flag(name string, defaultValue uint64, description string) *TenFlag

func (TenFlag) Bool

func (f TenFlag) Bool() bool

func (TenFlag) Int

func (f TenFlag) Int() int

func (TenFlag) Int64

func (f TenFlag) Int64() int64

func (TenFlag) IsSet

func (f TenFlag) IsSet() bool

func (TenFlag) String

func (f TenFlag) String() string

func (TenFlag) Uint64

func (f TenFlag) Uint64() uint64

Jump to

Keyboard shortcuts

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