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()) }