patch reflect: Zero/Len
This commit is contained in:
@@ -5,4 +5,7 @@ import "reflect"
|
||||
func main() {
|
||||
tyIntSlice := reflect.SliceOf(reflect.TypeOf(0))
|
||||
println(tyIntSlice.String())
|
||||
|
||||
v := reflect.Zero(tyIntSlice)
|
||||
println(v.Len())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user