github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/depends/x/misc/clone/clone_generated.go (about) 1 // This is a generated source file. DO NOT EDIT 2 // Source: clone/clone_generated.go 3 4 package clone 5 6 func Bytes(orig []byte) []byte { 7 cloned := make([]byte, len(orig)) 8 copy(cloned, orig) 9 return cloned 10 } 11 12 func Strings(orig []string) []string { 13 cloned := make([]string, len(orig)) 14 copy(cloned, orig) 15 return cloned 16 } 17 18 func Ints(orig []int) []int { 19 cloned := make([]int, len(orig)) 20 copy(cloned, orig) 21 return cloned 22 } 23 24 func Int8s(orig []int8) []int8 { 25 cloned := make([]int8, len(orig)) 26 copy(cloned, orig) 27 return cloned 28 } 29 30 func Int16s(orig []int16) []int16 { 31 cloned := make([]int16, len(orig)) 32 copy(cloned, orig) 33 return cloned 34 } 35 36 func Int32s(orig []int32) []int32 { 37 cloned := make([]int32, len(orig)) 38 copy(cloned, orig) 39 return cloned 40 } 41 42 func Int64s(orig []int64) []int64 { 43 cloned := make([]int64, len(orig)) 44 copy(cloned, orig) 45 return cloned 46 } 47 48 func Uints(orig []uint) []uint { 49 cloned := make([]uint, len(orig)) 50 copy(cloned, orig) 51 return cloned 52 } 53 54 func Uint8s(orig []uint8) []uint8 { 55 cloned := make([]uint8, len(orig)) 56 copy(cloned, orig) 57 return cloned 58 } 59 60 func Uint16s(orig []uint16) []uint16 { 61 cloned := make([]uint16, len(orig)) 62 copy(cloned, orig) 63 return cloned 64 } 65 66 func Uint32s(orig []uint32) []uint32 { 67 cloned := make([]uint32, len(orig)) 68 copy(cloned, orig) 69 return cloned 70 } 71 72 func Uint64s(orig []uint64) []uint64 { 73 cloned := make([]uint64, len(orig)) 74 copy(cloned, orig) 75 return cloned 76 } 77 78 func Runes(orig []rune) []rune { 79 cloned := make([]rune, len(orig)) 80 copy(cloned, orig) 81 return cloned 82 } 83 84 func Float32s(orig []float32) []float32 { 85 cloned := make([]float32, len(orig)) 86 copy(cloned, orig) 87 return cloned 88 } 89 90 func Float64s(orig []float64) []float64 { 91 cloned := make([]float64, len(orig)) 92 copy(cloned, orig) 93 return cloned 94 }