Documentation ¶
Index ¶
- func IsFloat(value string) bool
- func IsInt(value string) bool
- type Argument
- func (argument *Argument) ConvertValue(value string) interface{}
- func (argument *Argument) GetInputAmount() int
- func (argument *Argument) GetName() string
- func (argument *Argument) GetOutput() interface{}
- func (argument *Argument) IsOptional() bool
- func (argument *Argument) IsValidValue(value string) bool
- func (argument *Argument) SetInputAmount(amount int)
- func (argument *Argument) SetName(name string)
- func (argument *Argument) SetOptional(value bool)
- func (argument *Argument) SetOutput(value interface{})
- func (argument *Argument) ShouldMerge() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Argument ¶
type Argument struct {
// contains filtered or unexported fields
}
func NewStringEnum ¶
NewStringEnum returns a new String Enum argument with the given name and optional value.
func (*Argument) ConvertValue ¶
ConvertValues returns the converted value of the value.
func (*Argument) GetInputAmount ¶
GetInputAmount returns the amount of arguments of input this argument requires.
func (*Argument) GetOutput ¶
func (argument *Argument) GetOutput() interface{}
GetOutput returns the output value of this argument.
func (*Argument) IsOptional ¶
IsOptional checks if the argument is optional.
func (*Argument) IsValidValue ¶
IsValidValue checks if the given value is valid for the argument.
func (*Argument) SetInputAmount ¶
SetInputAmount sets the amount of arguments the input of this argument requires.
func (*Argument) SetOptional ¶
SetOptional sets the argument optional or non-optional.
func (*Argument) SetOutput ¶
func (argument *Argument) SetOutput(value interface{})
SetOutput sets the output value of this argument.
func (*Argument) ShouldMerge ¶
ShouldMerge returns whether this argument should merge all its values or not.