tagparse

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KindSubcmd = "subcmd"
	KindFlag   = "flag"
	KindPosArg = "posarg"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Kind

type Kind string

type ParsedTag

type ParsedTag struct {
	Kind          Kind
	CommandName   string
	ShortFlagName string
	LongFlagName  string
	FlagValueName string
	PosArgName    string
	IsTrailing    bool
	Usage         string
}

func Parse

func Parse(tag reflect.StructTag) (ParsedTag, error)

Jump to

Keyboard shortcuts

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