Chore/goctl version (#1962)

* chore: update version to v1.3.7

* docs: update migrate versions

* chore: remove debug prints

* chore: remove debug prints
master
Kevin Wan 2 years ago committed by GitHub
parent 46078e716d
commit 7868bdf660
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

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

@ -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 介绍

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

@ -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}

Loading…
Cancel
Save