parser

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCommand

func ParseCommand(s string) []string

func ParseOpts

func ParseOpts[T any](c *cli.Context, opts []OptKeyValue) (T, error)

Types

type OptKeyValue

type OptKeyValue struct {
	Key     string
	OptType OptType
}

type OptType

type OptType int
const (
	STRING OptType = iota
	INT
)

Jump to

Keyboard shortcuts

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