Fix lint and format code in adapter dir

This commit is contained in:
loyalsoldier
2021-06-05 11:37:02 +08:00
parent ca328208cc
commit 3572ac96a4
18 changed files with 24 additions and 90 deletions

View File

@@ -69,9 +69,7 @@ import (
beecontext "github.com/beego/beego/v2/server/web/context"
)
var (
defaultChars = []byte{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
)
var defaultChars = []byte{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
const (
// default captcha attributes

View File

@@ -28,8 +28,8 @@ func TestPrint(t *testing.T) {
}
func TestPrintPoint(t *testing.T) {
var v1 = new(mytype)
var v2 = new(mytype)
v1 := new(mytype)
v2 := new(mytype)
v1.prev = nil
v1.next = v2

View File

@@ -19,6 +19,7 @@ import (
)
type reducetype func(interface{}) interface{}
type filtertype func(interface{}) bool
// InSlice checks given string in string slice or not.