args

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCommand

func GenerateCommand(stringArgs map[int]StringArg, boolArgs map[int]BoolArg) []string

Types

type BoolArg

type BoolArg struct {
	Short string
	Long  string
	Value bool
}

func (*BoolArg) SetValue

func (old *BoolArg) SetValue(value bool) BoolArg

type StringArg

type StringArg struct {
	Short   string
	Long    string
	NoEqual bool
	Value   string
}

func (*StringArg) SetValue

func (old *StringArg) SetValue(value string) StringArg

Jump to

Keyboard shortcuts

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