clonerex

package
v1.78.3 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package clonerex is an example package for the cloner tool.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone(dst, src any) bool

Clone duplicates src into dst and reports whether it succeeded. To succeed, <src, dst> must be of types <*T, *T> or <*T, **T>, where T is one of SliceContainer.

Types

type SliceContainer

type SliceContainer struct {
	Slice []*int
}

func (*SliceContainer) Clone

func (src *SliceContainer) Clone() *SliceContainer

Clone makes a deep copy of SliceContainer. The result aliases no memory with the original.

Jump to

Keyboard shortcuts

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