flag

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitFlag

func SplitFlag(arg string) (string, string)

SplitFlag will split by : and give us the kind and name.

Types

type FlagSet

type FlagSet struct {
	*pflag.FlagSet
}

FlagSet represents a set of defined flags.

func NewFlagSet

func NewFlagSet(name string) *FlagSet

NewFlagSet creates a new flag set with the given name.

func (*FlagSet) AddInput

func (f *FlagSet) AddInput(value string)

AddInput adds an input flag to the flag set.

func (*FlagSet) AddOutput

func (f *FlagSet) AddOutput(value string)

AddOutput adds an output flag to the flag set.

func (*FlagSet) GetInput

func (f *FlagSet) GetInput() string

GetInput retrieves the input flag value from the flag set.

func (*FlagSet) GetOutput

func (f *FlagSet) GetOutput() string

GetInput retrieves the output flag value from the flag set.

func (*FlagSet) Provide

func (f *FlagSet) Provide() *FlagSet

Provide returns the flag set.

Jump to

Keyboard shortcuts

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