args

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	Positionals []string
	Flags       map[string]string
}

Args holds both positional arguments and flag values.

func (*Args) Get

func (a *Args) Get(name string) string

Get returns the string value of a flag or empty string if not present.

func (*Args) Has

func (a *Args) Has(name string) bool

Has returns true if a flag was provided.

func (Args) String

func (a Args) String() string

String provides a debug-friendly representation.

Jump to

Keyboard shortcuts

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