flg

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flags

type Flags struct {
	*flag.FlagSet
	// contains filtered or unexported fields
}

func New

func New(i interface{}) (*Flags, error)

New creates a custom flagset based on the struct i.

func (*Flags) Parse

func (f *Flags) Parse() error

Parse the internal flags and the user defined flags

func (Flags) Unmarshal

func (f Flags) Unmarshal(c interface{}) error

Unmarshal the given struct from the flagSet

Jump to

Keyboard shortcuts

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