argsparser

package
v0.0.0-...-779573b Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(args []string, params []Param, parseType ParseType) ([]string, error)

Types

type Param

type Param struct {
	// Input fields
	Name     string
	HasValue bool
	Optional bool
	// Output fields
	Value string
	// contains filtered or unexported fields
}

func (*Param) IsSet

func (p *Param) IsSet() bool

type ParseType

type ParseType int
const (
	ExactArgs ParseType = iota
	ExtraArgs
)

Source Files

  • parser.go

Jump to

Keyboard shortcuts

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