gitlab.com/evatix-go/core@v1.3.55/coredata/corestr/CloneSlice.go (about) 1 package corestr 2 3 func CloneSlice(items []string) []string { 4 if len(items) == 0 { 5 return []string{} 6 } 7 8 slice := make( 9 []string, 10 len(items)) 11 copy(slice, items) 12 13 return slice 14 }