flagutil

package
v0.2.19 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(name string, output io.Writer, fset FlagSet, args []string) ([]string, error)

func ParseFlags

func ParseFlags(fset FlagSet, args []string) ([]string, error)

Types

type FlagSet

type FlagSet interface {
}

type Float32

type Float32 float32

-- float32 Value

func NewFloat32

func NewFloat32(val float32, p *float32) *Float32

func (*Float32) Get

func (f *Float32) Get() interface{}

func (*Float32) Set

func (f *Float32) Set(s string) error

func (*Float32) String

func (f *Float32) String() string

type Int32

type Int32 int32

-- int32 Value

func NewInt32

func NewInt32(val int32, p *int32) *Int32

func (*Int32) Get

func (i *Int32) Get() interface{}

func (*Int32) Set

func (i *Int32) Set(s string) error

func (*Int32) String

func (i *Int32) String() string

type Map

type Map[K comparable, V any] map[K]V

--- map[K]V

func (Map[K, V]) Set

func (m Map[K, V]) Set(s string) error

type Slice

type Slice[T any] []T

--- slice[K]

func (Slice[T]) Set

func (slice Slice[T]) Set(s string) error

type Uint32

type Uint32 uint32

-- uint32 Value

func NewUint32

func NewUint32(val uint32, p *uint32) *Uint32

func (*Uint32) Get

func (i *Uint32) Get() interface{}

func (*Uint32) Set

func (i *Uint32) Set(s string) error

func (*Uint32) String

func (i *Uint32) String() string

Jump to

Keyboard shortcuts

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