1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-29 17:41:15 +03:00

chore: gofmt all code

This commit is contained in:
Vladimir Mihailenco
2021-09-08 16:00:52 +03:00
parent 11c4d6f556
commit 9b6ee9c3cc
34 changed files with 72 additions and 55 deletions

View File

@ -3,10 +3,10 @@ package hashtag
import (
"testing"
"github.com/go-redis/redis/v8/internal/rand"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/go-redis/redis/v8/internal/rand"
)
func TestGinkgoSuite(t *testing.T) {

View File

@ -69,7 +69,7 @@ var _ = Describe("Scan", func() {
Expect(Scan(&d, i{v}, i{vals[k]})).To(HaveOccurred())
}
//success
// success
f = func(v uint64) string {
return strconv.FormatUint(v, 10)
}

View File

@ -7,10 +7,10 @@ import (
"testing"
"time"
"github.com/go-redis/redis/v8/internal/pool"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/go-redis/redis/v8/internal/pool"
)
var _ = Describe("ConnPool", func() {

View File

@ -3,9 +3,10 @@ package proto_test
import (
"encoding/json"
"github.com/go-redis/redis/v8/internal/proto"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/go-redis/redis/v8/internal/proto"
)
type testScanSliceStruct struct {

View File

@ -6,10 +6,10 @@ import (
"testing"
"time"
"github.com/go-redis/redis/v8/internal/proto"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/go-redis/redis/v8/internal/proto"
)
type MyType struct{}
@ -51,7 +51,7 @@ var _ = Describe("WriteBuffer", func() {
})
It("should append time", func() {
tm := time.Date(2019, 01, 01, 9, 45, 10, 222125, time.UTC)
tm := time.Date(2019, 1, 1, 9, 45, 10, 222125, time.UTC)
err := wr.WriteArgs([]interface{}{tm})
Expect(err).NotTo(HaveOccurred())

View File

@ -1,3 +1,4 @@
//go:build appengine
// +build appengine
package internal

View File

@ -1,3 +1,4 @@
//go:build !appengine
// +build !appengine
package internal

View File

@ -1,3 +1,4 @@
//go:build appengine
// +build appengine
package util

View File

@ -1,3 +1,4 @@
//go:build !appengine
// +build !appengine
package util