Documentation ¶
Index ¶
- type Options
- func (O *Options) Bool(desc string, value bool) *bool
- func (O *Options) BoolVar(p *bool, desc string, value bool)
- func (O *Options) Func(desc string, value func() bool)
- func (O *Options) Int(desc string, value int, help string, min, max int) *int
- func (O *Options) IntVar(p *int, desc string, value int, help string, min, max int)
- func (O *Options) Options(desc string, value *Options, seperate_last bool)
- func (T *Options) Register(input Value)
- func (T *Options) Select(seperate_last bool) (changed bool)
- func (O *Options) String(desc string, value string, help string, mask_value bool) *string
- func (O *Options) StringVar(p *string, desc string, value string, help string, mask_value bool)
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
func NewOptions ¶
Creates new Options Menu
func (*Options) Bool ¶
Bool defines an int menu option displaying with specified desc in menu, default value, and help string. The return value is the address of an bool variable that stores the value of the option.
func (*Options) BoolVar ¶
BoolVar defines a bool menu option displaying with specified desc in menu, default value, and help string. The argument p points to a bool variable in which to store the value of the option.
func (*Options) Func ¶
Func defined a function within the option menu, the function should return a bool variable telling the Options menu if a change has occured.
func (*Options) Int ¶
Int defines an int menu option displaying with specified desc in menu, default value, and help string. The return value is the address of an int variable that stores the value of the option.
func (*Options) Options ¶
Option defines an nested Options menu option displaying with specified desc in menu, seperate_last will seperate the last menu option within the sub Options when selected.
func (*Options) Select ¶
Show Options Menu, if seperate_last = true, the last menu item will be dropped one line, and it's select number will be 0, seperating it from the rest.