diff --git a/task/task.go b/task/task.go index 86f493b..72fbb2e 100644 --- a/task/task.go +++ b/task/task.go @@ -43,7 +43,7 @@ type Task struct { // and a interface to carry value will be provided as the first argument // args will be passed after carry, in order to normalize, // it is suggested to use strings or other simple types - Func func(c *interface{}, args ...interface{}) error + Func func(c *interface{}, args ...interface{}) error `json:"-"` } type _task struct {