Skip to content

Commit a04c729

Browse files
committed
update go-zero to v1.3.0
1 parent afc1431 commit a04c729

File tree

5 files changed

+31
-45
lines changed

5 files changed

+31
-45
lines changed

bot/adapters/logic/closestmatch.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
"github.com/kevwan/chatbot/bot/adapters/storage"
99
"github.com/kevwan/chatbot/bot/nlp"
10-
"github.com/tal-tech/go-zero/core/mr"
10+
"github.com/zeromicro/go-zero/core/mr"
1111
)
1212

1313
const (
@@ -96,7 +96,7 @@ func (match *closestMatch) processExactMatch(responses map[string]int) []Answer
9696

9797
func (match *closestMatch) processSimilarMatch(text string) []Answer {
9898
result, err := mr.MapReduce(generator(match, text), mapper(match), reducer(match))
99-
if err != nil{
99+
if err != nil {
100100
return nil
101101
}
102102

bot/adapters/storage/memorystorage.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import (
77
"os"
88
"sort"
99

10-
"github.com/tal-tech/go-zero/core/lang"
11-
"github.com/tal-tech/go-zero/core/logx"
12-
"github.com/tal-tech/go-zero/core/mr"
1310
"github.com/wangbin/jiebago"
1411
"github.com/wangbin/jiebago/analyse"
12+
"github.com/zeromicro/go-zero/core/lang"
13+
"github.com/zeromicro/go-zero/core/logx"
14+
"github.com/zeromicro/go-zero/core/mr"
1515
)
1616

1717
const (

bot/nlp/sentencedetect.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"strings"
55
"unicode"
66

7-
"github.com/tal-tech/go-zero/core/lang"
7+
"github.com/zeromicro/go-zero/core/lang"
88
)
99

1010
var (

go.mod

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,17 @@ module github.com/kevwan/chatbot
33
go 1.17
44

55
require (
6-
github.com/tal-tech/go-zero v1.2.5
76
github.com/wangbin/jiebago v0.3.2
7+
github.com/zeromicro/go-zero v1.3.0
88
gopkg.in/yaml.v2 v2.4.0
99
)
1010

1111
require (
12-
github.com/go-logr/logr v1.2.2 // indirect
13-
github.com/go-logr/stdr v1.2.2 // indirect
1412
github.com/google/go-cmp v0.5.7 // indirect
1513
github.com/kr/pretty v0.3.0 // indirect
1614
github.com/rogpeppe/go-internal v1.8.1 // indirect
1715
github.com/spaolacci/murmur3 v1.1.0 // indirect
1816
go.opentelemetry.io/otel v1.3.0 // indirect
19-
go.opentelemetry.io/otel/sdk v1.3.0 // indirect
2017
go.opentelemetry.io/otel/trace v1.3.0 // indirect
2118
go.uber.org/automaxprocs v1.4.0 // indirect
2219
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9 // indirect

0 commit comments

Comments
 (0)