From 7868bdf6605b3b420b90e242983efa75291735ca Mon Sep 17 00:00:00 2001 From: Kevin Wan Date: Fri, 3 Jun 2022 20:46:21 +0800 Subject: [PATCH] Chore/goctl version (#1962) * chore: update version to v1.3.7 * docs: update migrate versions * chore: remove debug prints * chore: remove debug prints --- core/logx/logs_test.go | 1 - core/logx/tracelogger_test.go | 4 ---- readme-cn.md | 2 +- readme.md | 2 +- tools/goctl/internal/version/version.go | 2 +- 5 files changed, 3 insertions(+), 8 deletions(-) diff --git a/core/logx/logs_test.go b/core/logx/logs_test.go index 71038ca3..e3aadf93 100644 --- a/core/logx/logs_test.go +++ b/core/logx/logs_test.go @@ -709,7 +709,6 @@ func put(b []byte) { func doTestStructedLog(t *testing.T, level string, w *mockWriter, write func(...interface{})) { const message = "hello there" write(message) - fmt.Println(w.String()) var entry logEntry if err := json.Unmarshal([]byte(w.String()), &entry); err != nil { t.Error(err) diff --git a/core/logx/tracelogger_test.go b/core/logx/tracelogger_test.go index 8f8fe1b4..0866b663 100644 --- a/core/logx/tracelogger_test.go +++ b/core/logx/tracelogger_test.go @@ -3,7 +3,6 @@ package logx import ( "context" "encoding/json" - "fmt" "strings" "sync/atomic" "testing" @@ -65,11 +64,9 @@ func TestTraceError(t *testing.T) { validate(t, w.String(), true, true) w.Reset() l.WithDuration(time.Second).Errorv(testlog) - fmt.Println(w.String()) validate(t, w.String(), true, true) w.Reset() l.WithDuration(time.Second).Errorw(testlog, Field("foo", "bar")) - fmt.Println(w.String()) validate(t, w.String(), true, true) assert.True(t, strings.Contains(w.String(), "foo"), w.String()) assert.True(t, strings.Contains(w.String(), "bar"), w.String()) @@ -165,7 +162,6 @@ func TestTraceSlow(t *testing.T) { assert.True(t, strings.Contains(w.String(), spanKey)) w.Reset() l.WithDuration(time.Second).Slowf(testlog) - fmt.Println("buf:", w.String()) validate(t, w.String(), true, true) w.Reset() l.WithDuration(time.Second).Slowv(testlog) diff --git a/readme-cn.md b/readme-cn.md index 92ac45ae..df80be41 100644 --- a/readme-cn.md +++ b/readme-cn.md @@ -23,7 +23,7 @@ > > `GOPROXY=https://goproxy.cn/,direct go install github.com/zeromicro/go-zero/tools/goctl@latest` > -> `goctl migrate —verbose —version v1.3.3` +> `goctl migrate —verbose —version v1.3.4` ## 0. go-zero 介绍 diff --git a/readme.md b/readme.md index c79c53d0..ca1bcf1e 100644 --- a/readme.md +++ b/readme.md @@ -21,7 +21,7 @@ English | [简体中文](readme-cn.md) > > `go install github.com/zeromicro/go-zero/tools/goctl@latest` > -> `goctl migrate —verbose —version v1.3.3` +> `goctl migrate —verbose —version v1.3.4` ## 0. what is go-zero diff --git a/tools/goctl/internal/version/version.go b/tools/goctl/internal/version/version.go index 234832de..6a15e97b 100644 --- a/tools/goctl/internal/version/version.go +++ b/tools/goctl/internal/version/version.go @@ -6,7 +6,7 @@ import ( ) // BuildVersion is the version of goctl. -const BuildVersion = "1.3.6" +const BuildVersion = "1.3.7" var tag = map[string]int{"pre-alpha": 0, "alpha": 1, "pre-bata": 2, "beta": 3, "released": 4, "": 5}