getopt

package
v0.0.0-...-1f741fa Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: GPL-3.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFlag

func AddFlag(shortName rune, longName string, p *bool)

func AddOption

func AddOption(shortName rune, longName string, p interface{}, isOptional bool, valueParser ValueParser)

Types

type Args

type Args struct {
	// contains filtered or unexported fields
}

func Parse

func Parse() (a *Args, err error)

func (*Args) GetParams

func (a *Args) GetParams() []string

func (*Args) GetProgram

func (a *Args) GetProgram() string

type ValueParser

type ValueParser func(s string) (interface{}, error)

Jump to

Keyboard shortcuts

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