parse

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadCrBr

func ReadCrBr(cmd string) (string, string)

Read circular brackets

func ReadCrBrSepBy

func ReadCrBrSepBy(cmd string, sep string) (string, []string)

Read circular brackets and separate values by a string/char

func ReadSqBr

func ReadSqBr(cmd string) (string, string)

Read square brackets

func ReadSqBrSepBy

func ReadSqBrSepBy(cmd string, sep string) (string, []string)

Read square brackets and separate values by a string/char

func SplitMethods added in v2.2.0

func SplitMethods(p string) []string

func SplitValues added in v2.2.0

func SplitValues(p string) []string

Types

type CookParse added in v2.2.0

type CookParse struct {
	Args []string

	Help string
	// contains filtered or unexported fields
}

func NewParse added in v2.2.0

func NewParse(args ...string) *CookParse

func (*CookParse) Boolean added in v2.2.0

func (p *CookParse) Boolean(flag, flagL string) bool

func (*CookParse) Integer added in v2.2.0

func (p *CookParse) Integer(flag, flagL string) int

func (*CookParse) Parse added in v2.2.0

func (p *CookParse) Parse()

func (*CookParse) String added in v2.2.0

func (p *CookParse) String(flag, flagL string) string

func (*CookParse) UserDefinedFlags added in v2.2.0

func (p *CookParse) UserDefinedFlags() map[string]string

Jump to

Keyboard shortcuts

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