hariprasadraja
10/1/2019 - 6:50 AM

go slice deep copy

deep copy copies the slice from source slice 'src' to the destination slice 'dest'

// deep copy of destType
dest = make([]destType, len(src))
copy(dest, src)