README ¶ tm Time Calculator. Installation brew install winebarrel/tm/tm Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type Dur func (v *Dur) Capture(values []string) error type Expr func (expr *Expr) Eval() time.Duration type OpValue type Result func Eval(str string) (Result, error) func (r Result) String() string type Tm func (v *Tm) Capture(values []string) error type Value func (v *Value) Duration() time.Duration Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Dur ¶ type Dur time.Duration func (*Dur) Capture ¶ func (v *Dur) Capture(values []string) error type Expr ¶ type Expr struct { Value Value `@@` OpValues []OpValue `( SP* @@ )*` } func (*Expr) Eval ¶ func (expr *Expr) Eval() time.Duration type OpValue ¶ type OpValue struct { Op string `@Op` Value Value `SP* @@` } type Result ¶ type Result time.Duration func Eval ¶ func Eval(str string) (Result, error) func (Result) String ¶ func (r Result) String() string type Tm ¶ type Tm time.Duration func (*Tm) Capture ¶ func (v *Tm) Capture(values []string) error type Value ¶ type Value struct { Tm *Tm `@Tm` Dur *Dur `| ( @Dur1 | @Dur2 | @Dur3 )` } func (*Value) Duration ¶ func (v *Value) Duration() time.Duration Source Files ¶ View all Source files eval.goparse.go Directories ¶ Show internal Expand all Path Synopsis cmd tm command internal util Click to show internal directories. Click to hide internal directories.