utils

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepCopy

func DeepCopy(dst, src interface{}) error
Example
src := &http.Client{Timeout: 100 * time.Second}
dst := &http.Client{}
if err := DeepCopy(dst, src); err != nil {
	fmt.Println(err)
}
fmt.Println(src)
fmt.Println(dst)
Output:

&{<nil> <nil> <nil> 1m40s}
&{<nil> <nil> <nil> 1m40s}

Types

This section is empty.

Jump to

Keyboard shortcuts

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