Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 697 Bytes

DOC.md

File metadata and controls

37 lines (22 loc) · 697 Bytes

deepcopy

import "github.com/fufuok/utils/generic/deepcopy"

License: MIT, for more details check the included LICENSE file.

Index

func Copy

func Copy[T any](src T) T

Copy creates a deep copy of whatever is passed to it and returns the copy in an interface{}. The returned value will need to be asserted to the correct type.

type Interface

Interface for delegating copy process to type

type Interface interface {
    DeepCopy() interface{}
}

Generated by gomarkdoc