Help us shape the future of Go! Take the 2026 Go Developer Survey

clone

package
v2.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2026 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone[T any](t T) T

func MarkAsOpaquePointer

func MarkAsOpaquePointer(t reflect.Type)

func MarkAsScalar

func MarkAsScalar(t reflect.Type)

func SetCustomFunc

func SetCustomFunc(t reflect.Type, fn Func)

func Slowly

func Slowly[T any](t T) T

func Undo

func Undo[T any](t T)

func Unwrap

func Unwrap[T any](t T) T

func Wrap

func Wrap[T any](t T) T

Types

type Allocator

type Allocator = clone.Allocator

func FromHeap

func FromHeap() *Allocator

func NewAllocator

func NewAllocator(pool unsafe.Pointer, methods *AllocatorMethods) (allocator *Allocator)

type AllocatorMethods

type AllocatorMethods = clone.AllocatorMethods

type Func

type Func = clone.Func

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL