implement reflect.Swapper

Signed-off-by: mathetake <takeshi@tetrate.io>
This commit is contained in:
Takeshi Yoneda
2020-10-24 04:37:35 +09:00
committed by GitHub
parent ff833ef998
commit 1dec9dcbc4
3 changed files with 341 additions and 1 deletions
+122
View File
@@ -0,0 +1,122 @@
strings
ggg
fff
cccc
bbb
aaaa
int64s
1923
123
6
3
3
2
1
1
0
-29
-123
uint64s
1923
123
29
6
3
3
2
1
1
0
int32s
1923
123
6
3
3
2
1
1
0
-29
-123
uint32s
1923
123
29
6
3
3
2
1
1
0
int16s
1923
123
6
3
3
2
1
1
0
-29
-123
uint16s
1923
123
29
6
3
3
2
1
1
0
int8s
123
6
3
3
2
1
1
0
-29
-123
uint8s
123
29
6
3
3
2
1
1
0
ints
123
6
3
3
2
1
1
0
-29
-123
uints
123
29
6
3
3
2
1
1
0
structs
struct 2
struct 4
struct 1
struct 3