gitee.com/sy_183/go-common@v1.0.5-0.20231205030221-958cfe129b47/slice/unsafe/unsafe_test.go (about) 1 package unsafe 2 3 import ( 4 "fmt" 5 "testing" 6 ) 7 8 func TestMerge(t *testing.T) { 9 var s []int 10 for i := 0; i < 20; i++ { 11 s = append(s, i) 12 } 13 m := Merge(s[3:8], s[2:4], s[4:12], s[12:15], s[13:17]) 14 fmt.Println(m) 15 }