Skip to content

Commit 397b424

Browse files
committed
go mod 1.20
1 parent 1928290 commit 397b424

File tree

4 files changed

+54
-242
lines changed

4 files changed

+54
-242
lines changed

context.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ func CtxTraceID(c context.Context) string {
6565
if traceID := jsoniter.Get(GetGinRequestBody(gc), string(TraceIDKeyname)).ToString(); traceID != "" {
6666
return traceID
6767
}
68-
6968
}
7069
// get from go context
7170
traceIDItf := c.Value(TraceIDKeyname)

go.mod

Lines changed: 50 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/axiaoxin-com/logging
22

3-
go 1.16
3+
go 1.20
44

55
require (
66
github.com/axiaoxin-com/goutils v1.0.35
@@ -9,11 +9,57 @@ require (
99
github.com/json-iterator/go v1.1.12
1010
github.com/natefinch/lumberjack v2.0.0+incompatible
1111
github.com/prometheus/client_golang v1.12.1
12-
github.com/prometheus/common v0.33.0 // indirect
1312
github.com/rs/xid v1.4.0
13+
go.uber.org/zap v1.21.0
14+
gorm.io/gorm v1.23.4
15+
)
16+
17+
require (
18+
github.com/antlabs/strsim v0.0.2 // indirect
19+
github.com/beorn7/perks v1.0.1 // indirect
20+
github.com/cespare/xxhash/v2 v2.1.2 // indirect
21+
github.com/deckarep/golang-set v1.8.0 // indirect
22+
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
23+
github.com/fsnotify/fsnotify v1.5.1 // indirect
24+
github.com/gin-contrib/sse v0.1.0 // indirect
25+
github.com/go-playground/locales v0.14.0 // indirect
26+
github.com/go-playground/universal-translator v0.18.0 // indirect
27+
github.com/go-playground/validator/v10 v10.11.1 // indirect
28+
github.com/go-redis/redis/v8 v8.11.5 // indirect
29+
github.com/goccy/go-json v0.9.11 // indirect
30+
github.com/golang/protobuf v1.5.2 // indirect
31+
github.com/hashicorp/hcl v1.0.0 // indirect
32+
github.com/leodido/go-urn v1.2.1 // indirect
33+
github.com/magiconair/properties v1.8.6 // indirect
34+
github.com/mattn/go-isatty v0.0.17 // indirect
35+
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
36+
github.com/mitchellh/mapstructure v1.4.3 // indirect
37+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
38+
github.com/modern-go/reflect2 v1.0.2 // indirect
39+
github.com/patrickmn/go-cache v2.1.0+incompatible // indirect
40+
github.com/pelletier/go-toml v1.9.4 // indirect
41+
github.com/pelletier/go-toml/v2 v2.0.5 // indirect
42+
github.com/pkg/errors v0.9.1 // indirect
43+
github.com/prometheus/client_model v0.2.0 // indirect
44+
github.com/prometheus/common v0.33.0 // indirect
45+
github.com/prometheus/procfs v0.7.3 // indirect
46+
github.com/speps/go-hashids v2.0.0+incompatible // indirect
47+
github.com/spf13/afero v1.8.2 // indirect
48+
github.com/spf13/cast v1.4.1 // indirect
49+
github.com/spf13/jwalterweatherman v1.1.0 // indirect
50+
github.com/spf13/pflag v1.0.5 // indirect
51+
github.com/spf13/viper v1.11.0 // indirect
52+
github.com/subosito/gotenv v1.2.0 // indirect
53+
github.com/ugorji/go/codec v1.2.7 // indirect
1454
go.uber.org/atomic v1.9.0 // indirect
1555
go.uber.org/multierr v1.8.0 // indirect
16-
go.uber.org/zap v1.21.0
56+
golang.org/x/crypto v0.7.0 // indirect
57+
golang.org/x/net v0.8.0 // indirect
58+
golang.org/x/sys v0.6.0 // indirect
59+
golang.org/x/text v0.8.0 // indirect
60+
google.golang.org/protobuf v1.29.1 // indirect
61+
gopkg.in/ini.v1 v1.67.0 // indirect
1762
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
18-
gorm.io/gorm v1.23.4
63+
gopkg.in/yaml.v2 v2.4.0 // indirect
64+
gopkg.in/yaml.v3 v3.0.1 // indirect
1965
)

0 commit comments

Comments
 (0)