Documentation
¶
Overview ¶
Package cloner provides functions to deep clone any Go data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*Config)
Option represents an option to customize deep copied results.
func WithShadowCopyInversePkgPrefixes ¶
WithShadowCopyInversePkgPrefixes returns an `Option` that forces shadow copies of types whose pkg paths do not match the given `prefixes`.
func WithShadowCopyTypes ¶
WithShadowCopyTypes returns an `Option` that forces shadow copies of the types that are in the given `values`.
func WithSkippingTypes ¶
WithSkippingTypes returns an `Option` that forces skipping copying types that are in the given `values`.
Click to show internal directories.
Click to hide internal directories.