mv cases to _cmptest

This commit is contained in:
xushiwei
2024-06-23 01:00:02 +08:00
parent cd6d4021b1
commit adeb5de19f
6 changed files with 1 additions and 1 deletions

14
_cmptest/rtype/rtype.go Normal file
View File

@@ -0,0 +1,14 @@
package main
import "reflect"
func main() {
tyIntSlice := reflect.SliceOf(reflect.TypeOf(0))
println(tyIntSlice.String())
v := reflect.Zero(tyIntSlice)
println(v.Len())
v = reflect.ValueOf(100)
println(v.Int())
}