parent
51ed3c8744
commit
d8c7d57bf3
|
@ -2,7 +2,6 @@ package simplecache
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
|
||||||
"reflect"
|
"reflect"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
@ -186,7 +185,6 @@ func isize(i interface{}) int {
|
||||||
}
|
}
|
||||||
val := reflect.ValueOf(i)
|
val := reflect.ValueOf(i)
|
||||||
kind := val.Kind()
|
kind := val.Kind()
|
||||||
fmt.Println("val =", val, "kind =", kind)
|
|
||||||
size := 0
|
size := 0
|
||||||
switch kind {
|
switch kind {
|
||||||
case reflect.Slice, reflect.Array, reflect.String:
|
case reflect.Slice, reflect.Array, reflect.String:
|
||||||
|
|
Loading…
Reference in New Issue