fix: module path
This commit is contained in:
parent
147c79cc0c
commit
9b49c5c156
6
flow.go
6
flow.go
|
@ -79,6 +79,12 @@ type Flow struct {
|
|||
Tail *FlowNode
|
||||
}
|
||||
|
||||
// New 创建一个流程, 相当于例子 `干洗`
|
||||
func New(name string) *Flow {
|
||||
f := &Flow{Name: name, Context: &FlowContext{}}
|
||||
return f
|
||||
}
|
||||
|
||||
// Add 添加
|
||||
func (flow *Flow) Add(name string, task func(cxt *FlowContext) int) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user