flag

package
v2.167.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlagSet

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

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) GetInput

func (f *FlagSet) GetInput() string

GetInput retrieves the input flag value from the flag set.

Jump to

Keyboard shortcuts

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