Documentation ¶ Index ¶ type Context func NewContext() *Context func (c *Context) IsDone() bool func (c *Context) SetDone(d bool) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Context ¶ type Context struct { Name string `json:"name"` TaskNo int `json:"taskNo"` Done bool `json:"done"` Now int `json:"now"` // contains filtered or unexported fields } Context 任务上下文对象 func NewContext ¶ func NewContext() *Context NewContext func (*Context) IsDone ¶ func (c *Context) IsDone() bool IsDone func (*Context) SetDone ¶ func (c *Context) SetDone(d bool) SetDone Source Files ¶ View all Source files context.go Click to show internal directories. Click to hide internal directories.