From 1d289feeb9c3d25bccb915312e1725f23b48e187 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 27 Sep 2022 21:16:57 +0800 Subject: [PATCH] [fix] misspelling --- widgets/action/action.go | 2 +- widgets/action/types.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)