Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Form ¶
type Form struct {
// contains filtered or unexported fields
}
Form is the generic Tool used by every tool except the stopwatch.
type Spec ¶
type Spec struct {
Title, Desc string
Icon string
Fields []Field
Options []Option
Run func(in []string, opt []int) (tools.Result, error)
}
Spec describes a form tool: inputs + options in, text out, recomputed live.
type Stopwatch ¶
type Stopwatch struct {
// contains filtered or unexported fields
}
Stopwatch measures from the wall clock, so it keeps counting while you use other tools.
func NewStopwatch ¶
func NewStopwatch() *Stopwatch