clone

package
v0.0.0-...-2b335b9 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package clone implements a generic Clone() operation applicable to all types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone(src, dst interface{}) error

Clone clones the exported fields of 'src' into 'dst'. Empty maps and slices may be converted to nil pointers. Typical usage:

var a SomeType
var b SomeType
Clone(a, &b)

Types

This section is empty.

Jump to

Keyboard shortcuts

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