Documentation ¶
Overview ¶
Package fuego is a library for automatically generating command line interfaces (CLIs) from function and struct.
Index ¶
- func Fire(target interface{}, config ...Config) ([]reflect.Value, error)
- type Config
- type Fkind
- type Sym
- func (s *Sym) Call() []reflect.Value
- func (s *Sym) GetDoc() string
- func (s *Sym) GetIn(idx int) reflect.Type
- func (s *Sym) GetNumIns() int
- func (s Sym) GetNumOfNeededArgs() int
- func (s *Sym) IsValid() bool
- func (s *Sym) SetCall(call reflect.Value)
- func (s *Sym) SetDoc(doc string)
- func (s *Sym) SetKind(kind Fkind)
- func (s *Sym) SetName(name string)
- func (s *Sym) SetParams(params []string)
- func (s *Sym) SetValid(valid bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
PrintReturnValuesOff bool
}
Config is a configuration struct for fuego
type Sym ¶
type Sym struct {
// contains filtered or unexported fields
}
Sym is a symbol of method/functions
func (Sym) GetNumOfNeededArgs ¶
Click to show internal directories.
Click to hide internal directories.