copier

package
v0.0.0-...-187538d Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package copier implement the helper to copy instances.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(toValue any, fromValue any) (err error)

Copy returns a new value with the same fields of the input value.

func CopyMap

func CopyMap[K comparable, V any](m map[K]V) map[K]V

CopyMap returns a new map with the same elements of the input map.

func CopySlice

func CopySlice[T any](slice []T) []T

CopySlice returns a new slice with the same elements of the input slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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