clone

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package clone deep-copies values of unknown, reflection-only types — notably registry.Configuration, whose concrete type is defined by whichever plugin registered it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Any

func Any(value any) any

Any returns a deep copy of value: pointers, interfaces, slices, maps, and arrays are copied recursively so the result shares no mutable state with value. Unexported struct fields are left at their zero value, since reflect cannot set them without unsafe tricks. Channels, funcs, and other kinds with no meaningful copy are returned as-is.

Types

This section is empty.

Jump to

Keyboard shortcuts

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