diff --git a/widgets/action/action.go b/widgets/action/action.go index 71130574..5878a6ba 100644 --- a/widgets/action/action.go +++ b/widgets/action/action.go @@ -23,7 +23,7 @@ func NewProcess(name string, p *Process) *Process { return p } -// SetHandler set the hanlder +// SetHandler set the handler func (p *Process) SetHandler(handler Handler) *Process { p.Handler = handler return p diff --git a/widgets/action/types.go b/widgets/action/types.go index 31470f0c..6050e182 100644 --- a/widgets/action/types.go +++ b/widgets/action/types.go @@ -18,5 +18,5 @@ type Process struct { Handler Handler `json:"-"` } -// Handler action hanlder +// Handler action handler type Handler func(p *Process, process *gou.Process) (interface{}, error)