Skip to content

Commit ef0f8e5

Browse files
moremindqicz
andauthored
[type:fix] Reduced from go 1.18 to go 1.16 (#86)
* [type:fix] upgrade go version * [type:fix] fix go version * [type:fix] fix go version Co-authored-by: Qicz <qiczzhu@gmail.com>
1 parent 36a8ed6 commit ef0f8e5

File tree

8 files changed

+15
-1
lines changed

8 files changed

+15
-1
lines changed

array/array.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
package array
1919

20+
type any = interface{}
21+
2022
// NotEmpty array
2123
func NotEmpty(arr ...any) bool {
2224
return !Empty(arr)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/acmestack/godkits
22

3-
go 1.18
3+
go 1.16

gox/containerx/listx/listx.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ package listx
1919

2020
import "container/list"
2121

22+
type any = interface{}
23+
2224
// Listx extend from list.List
2325
type Listx struct {
2426
list.List

gox/cryptox/aesx/aesx_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ import (
2525

2626
const key = "1234567891234567"
2727

28+
type any = interface{}
29+
2830
func TestDecrypt0(t *testing.T) {
2931
type args struct {
3032
encrypted []byte

gox/encodingx/base64x/base64x_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ import (
2121
"testing"
2222
)
2323

24+
type any = interface{}
25+
2426
// test TestBase64EncodeToString
2527
// base64("i am moremind") = "aSBhbSBtb3JlbWluZA=="
2628
func TestBase64EncodeToString(t *testing.T) {

gox/encodingx/jsonx/jsonx.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ package jsonx
1919

2020
import "encoding/json"
2121

22+
type any = interface{}
23+
2224
// ToJsonBytes convert any to json bytes
2325
// wrap json.Marshal
2426
func ToJsonBytes(v any) ([]byte, error) {

gox/errorsx/errorsx_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ import (
2222
"testing"
2323
)
2424

25+
type any = interface{}
26+
2527
func TestErr(t *testing.T) {
2628
type args struct {
2729
message string

gox/mapx/map_check.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ package mapx
1919

2020
import "log"
2121

22+
type any = interface{}
23+
2224
func checkMap(m *Map) {
2325
if m == nil || m.kv == nil {
2426
log.Println("the map illegal state, invoke the `NewMap` func first")

0 commit comments

Comments
 (0)