增加是否有效数组判断

This commit is contained in:
2023-06-11 21:17:27 +08:00
parent 9090051eef
commit bd989696a1
2 changed files with 76 additions and 0 deletions

18
array_test.go Normal file
View File

@ -0,0 +1,18 @@
// Package wrapper ...
//
// Description : wrapper ...
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 2023-06-11 21:12
package wrapper
import (
"fmt"
"testing"
)
func TestArray(t *testing.T) {
val := []int64{1, 2, 3}
fmt.Println(Array(val).IsValid())
}