diff --git a/example/dyson_command.go b/example/dyson_command.go index 958ae4677127e665265ffe8cd7796e0954e61d83..0f76a05a462d31d32e899d3cdfe9679a7b9831cb 100644 --- a/example/dyson_command.go +++ b/example/dyson_command.go @@ -1,16 +1,15 @@ package main import ( - "common_engine" "fmt" + "gitee.com/coder_vector/common_engine" ) type DysonCommand struct { } func (d *DysonCommand) GetCommandParamsOptions() []common_engine.CommandParamsOption { - return []common_engine.CommandParamsOption{ - } + return []common_engine.CommandParamsOption{} } func (d *DysonCommand) GetCommandText() string { diff --git a/example/dyson_sum.go b/example/dyson_sum.go index ea0211e4444d1f20c5facc9ea62fb7640f84af31..7a1378a0e6ae1ca25c6cf859745e9754bf0e88d5 100644 --- a/example/dyson_sum.go +++ b/example/dyson_sum.go @@ -1,7 +1,7 @@ package main import ( - "common_engine" + "gitee.com/coder_vector/common_engine" ) type DysonSum struct { @@ -38,6 +38,6 @@ func (d *DysonSum) Handler(cmd *common_engine.TaskCommand, commandRes map[string func (d *DysonSum) GetCommandOption() *common_engine.CommandOption { must := true return &common_engine.CommandOption{ - Must: &must, + Must: &must, } } \ No newline at end of file diff --git a/example/dyson_task.go b/example/dyson_task.go index f62f565a3d97c3257fd2cda2da611d56a64da8b1..b103113ceebc48438c1bc3d6a1a94b0c6d959cc9 100644 --- a/example/dyson_task.go +++ b/example/dyson_task.go @@ -1,6 +1,6 @@ package main -import "common_engine" +import "gitee.com/coder_vector/common_engine" type DysonTask struct { } @@ -14,7 +14,5 @@ func (t *DysonTask) GetExtendInfo() map[string]string { } func (t *DysonTask) GetTaskOption() *common_engine.TaskOption { - return &common_engine.TaskOption{ - - } + return &common_engine.TaskOption{} } \ No newline at end of file diff --git a/example/example.go b/example/example.go index f7c02a887d0defac6a666ae1abf35f265bb84a8b..7b56da13e303198e5c9dafb6dd73806238b5cb7c 100644 --- a/example/example.go +++ b/example/example.go @@ -1,14 +1,14 @@ package main import ( - "common_engine" "context" "fmt" + "gitee.com/coder_vector/common_engine" ) func main() { ctx := context.Background() - e := common_engine.NewEngine(ctx) + e := common_engine.NewEngine(ctx, 100) err := e.BindCommand(&DysonCommand{}).BindCommand(&DysonSum{}).Err() if err != nil { panic(err)