Versions in this module Expand all Collapse all v1 v1.6.2 Oct 2, 2023 v1.6.1 Oct 2, 2023 Changes in this version + func Clone(v interface{}) interface + func IsScalar(k reflect.Kind) bool + func MarkAsOpaquePointer(t reflect.Type) + func MarkAsScalar(t reflect.Type) + func SetCustomFunc(t reflect.Type, fn Func) + func Slowly(v interface{}) interface + func Undo(v interface{}) + func Unwrap(v interface{}) interface + func Wrap(v interface{}) interface + type Allocator struct + func FromHeap() *Allocator + func NewAllocator(pool unsafe.Pointer, methods *AllocatorMethods) (allocator *Allocator) + func (a *Allocator) Clone(val reflect.Value) reflect.Value + func (a *Allocator) CloneSlowly(val reflect.Value) reflect.Value + func (a *Allocator) MakeChan(t reflect.Type, buffer int) reflect.Value + func (a *Allocator) MakeMap(t reflect.Type, n int) reflect.Value + func (a *Allocator) MakeSlice(t reflect.Type, len, cap int) reflect.Value + func (a *Allocator) MarkAsOpaquePointer(t reflect.Type) + func (a *Allocator) MarkAsScalar(t reflect.Type) + func (a *Allocator) New(t reflect.Type) reflect.Value + func (a *Allocator) SetCustomFunc(t reflect.Type, fn Func) + type AllocatorMethods struct + IsScalar func(k reflect.Kind) bool + MakeChan func(pool unsafe.Pointer, t reflect.Type, buffer int) reflect.Value + MakeMap func(pool unsafe.Pointer, t reflect.Type, n int) reflect.Value + MakeSlice func(pool unsafe.Pointer, t reflect.Type, len, cap int) reflect.Value + New func(pool unsafe.Pointer, t reflect.Type) reflect.Value + Parent *Allocator + type Cloner struct + func MakeCloner(allocator *Allocator) Cloner + func (c Cloner) Clone(v interface{}) interface{} + func (c Cloner) CloneSlowly(v interface{}) interface{} + type Func func(allocator *Allocator, old, new reflect.Value)