init commit
This commit is contained in:
8
archive/go/cache/utils.go
vendored
Normal file
8
archive/go/cache/utils.go
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
package main
|
||||
|
||||
import "reflect"
|
||||
|
||||
// 简单的计算了,对于指针、切片等有问题
|
||||
func sizeof(v interface{}) int {
|
||||
return int(reflect.TypeOf(v).Size())
|
||||
}
|
Reference in New Issue
Block a user