feat:完善项目

This commit is contained in:
henry
2021-09-28 11:47:19 +08:00
commit da7b3130fe
167 changed files with 456676 additions and 0 deletions

31
utils/array_test.go Normal file
View File

@ -0,0 +1,31 @@
package utils
import (
"reflect"
"testing"
)
const (
a = 0x00001
b = 0x00010
c = 0x00100
)
func TestArrayFlip(t *testing.T) {
//flip := []uint64{1, 2, 3, 4}
//out := ArrayFlip(flip)
//t.Logf("out%v\n", out)
d := a & b & c
t.Log(d)
}
func TestArrayStrings(t *testing.T) {
a := []uint64{1, 2, 3, 4, 5}
t.Log(a)
t.Log(reflect.TypeOf(a).String())
b := ArrayStrings(a)
t.Log(b)
t.Log(reflect.TypeOf(b).String())
}