copier

package
v0.0.0-...-c78e9a6 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: LGPL-2.1 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy[TSrc any, TDest any](fromValue TSrc, toValue TDest) (err error)

Copy objects

func CopyExWithJSONTag

func CopyExWithJSONTag(dest interface{}, source interface{}) error

func CopyWithJSONTag

func CopyWithJSONTag(dest interface{}, source interface{}) error

func JSONCopy

func JSONCopy(dst, src interface{}) error

JSONCopy ...

Types

type ICopier

type ICopier interface {
	Copy(toValue, fromValue interface{}) (err error)
	JSONCopy(dst, src interface{}) (err error)
	CopyWithJSONTag(dst, src interface{}) (err error)
	CopyExWithJSONTag(dst, src interface{}) (err error)
}
var Instance ICopier = &cCopier{}

Jump to

Keyboard shortcuts

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