fix: module path

This commit is contained in:
huangsimin 2019-11-07 13:58:42 +08:00
parent 147c79cc0c
commit 9b49c5c156
2 changed files with 7 additions and 1 deletions

View File

@ -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) {

2
go.mod
View File

@ -1,4 +1,4 @@
module flow
module 474420502.top/test/flow
go 1.13