to_ptr.go (7434B)
1 // Code generated by aws/generate.go DO NOT EDIT. 2 3 package aws 4 5 import ( 6 "github.com/aws/smithy-go/ptr" 7 "time" 8 ) 9 10 // Bool returns a pointer value for the bool value passed in. 11 func Bool(v bool) *bool { 12 return ptr.Bool(v) 13 } 14 15 // BoolSlice returns a slice of bool pointers from the values 16 // passed in. 17 func BoolSlice(vs []bool) []*bool { 18 return ptr.BoolSlice(vs) 19 } 20 21 // BoolMap returns a map of bool pointers from the values 22 // passed in. 23 func BoolMap(vs map[string]bool) map[string]*bool { 24 return ptr.BoolMap(vs) 25 } 26 27 // Byte returns a pointer value for the byte value passed in. 28 func Byte(v byte) *byte { 29 return ptr.Byte(v) 30 } 31 32 // ByteSlice returns a slice of byte pointers from the values 33 // passed in. 34 func ByteSlice(vs []byte) []*byte { 35 return ptr.ByteSlice(vs) 36 } 37 38 // ByteMap returns a map of byte pointers from the values 39 // passed in. 40 func ByteMap(vs map[string]byte) map[string]*byte { 41 return ptr.ByteMap(vs) 42 } 43 44 // String returns a pointer value for the string value passed in. 45 func String(v string) *string { 46 return ptr.String(v) 47 } 48 49 // StringSlice returns a slice of string pointers from the values 50 // passed in. 51 func StringSlice(vs []string) []*string { 52 return ptr.StringSlice(vs) 53 } 54 55 // StringMap returns a map of string pointers from the values 56 // passed in. 57 func StringMap(vs map[string]string) map[string]*string { 58 return ptr.StringMap(vs) 59 } 60 61 // Int returns a pointer value for the int value passed in. 62 func Int(v int) *int { 63 return ptr.Int(v) 64 } 65 66 // IntSlice returns a slice of int pointers from the values 67 // passed in. 68 func IntSlice(vs []int) []*int { 69 return ptr.IntSlice(vs) 70 } 71 72 // IntMap returns a map of int pointers from the values 73 // passed in. 74 func IntMap(vs map[string]int) map[string]*int { 75 return ptr.IntMap(vs) 76 } 77 78 // Int8 returns a pointer value for the int8 value passed in. 79 func Int8(v int8) *int8 { 80 return ptr.Int8(v) 81 } 82 83 // Int8Slice returns a slice of int8 pointers from the values 84 // passed in. 85 func Int8Slice(vs []int8) []*int8 { 86 return ptr.Int8Slice(vs) 87 } 88 89 // Int8Map returns a map of int8 pointers from the values 90 // passed in. 91 func Int8Map(vs map[string]int8) map[string]*int8 { 92 return ptr.Int8Map(vs) 93 } 94 95 // Int16 returns a pointer value for the int16 value passed in. 96 func Int16(v int16) *int16 { 97 return ptr.Int16(v) 98 } 99 100 // Int16Slice returns a slice of int16 pointers from the values 101 // passed in. 102 func Int16Slice(vs []int16) []*int16 { 103 return ptr.Int16Slice(vs) 104 } 105 106 // Int16Map returns a map of int16 pointers from the values 107 // passed in. 108 func Int16Map(vs map[string]int16) map[string]*int16 { 109 return ptr.Int16Map(vs) 110 } 111 112 // Int32 returns a pointer value for the int32 value passed in. 113 func Int32(v int32) *int32 { 114 return ptr.Int32(v) 115 } 116 117 // Int32Slice returns a slice of int32 pointers from the values 118 // passed in. 119 func Int32Slice(vs []int32) []*int32 { 120 return ptr.Int32Slice(vs) 121 } 122 123 // Int32Map returns a map of int32 pointers from the values 124 // passed in. 125 func Int32Map(vs map[string]int32) map[string]*int32 { 126 return ptr.Int32Map(vs) 127 } 128 129 // Int64 returns a pointer value for the int64 value passed in. 130 func Int64(v int64) *int64 { 131 return ptr.Int64(v) 132 } 133 134 // Int64Slice returns a slice of int64 pointers from the values 135 // passed in. 136 func Int64Slice(vs []int64) []*int64 { 137 return ptr.Int64Slice(vs) 138 } 139 140 // Int64Map returns a map of int64 pointers from the values 141 // passed in. 142 func Int64Map(vs map[string]int64) map[string]*int64 { 143 return ptr.Int64Map(vs) 144 } 145 146 // Uint returns a pointer value for the uint value passed in. 147 func Uint(v uint) *uint { 148 return ptr.Uint(v) 149 } 150 151 // UintSlice returns a slice of uint pointers from the values 152 // passed in. 153 func UintSlice(vs []uint) []*uint { 154 return ptr.UintSlice(vs) 155 } 156 157 // UintMap returns a map of uint pointers from the values 158 // passed in. 159 func UintMap(vs map[string]uint) map[string]*uint { 160 return ptr.UintMap(vs) 161 } 162 163 // Uint8 returns a pointer value for the uint8 value passed in. 164 func Uint8(v uint8) *uint8 { 165 return ptr.Uint8(v) 166 } 167 168 // Uint8Slice returns a slice of uint8 pointers from the values 169 // passed in. 170 func Uint8Slice(vs []uint8) []*uint8 { 171 return ptr.Uint8Slice(vs) 172 } 173 174 // Uint8Map returns a map of uint8 pointers from the values 175 // passed in. 176 func Uint8Map(vs map[string]uint8) map[string]*uint8 { 177 return ptr.Uint8Map(vs) 178 } 179 180 // Uint16 returns a pointer value for the uint16 value passed in. 181 func Uint16(v uint16) *uint16 { 182 return ptr.Uint16(v) 183 } 184 185 // Uint16Slice returns a slice of uint16 pointers from the values 186 // passed in. 187 func Uint16Slice(vs []uint16) []*uint16 { 188 return ptr.Uint16Slice(vs) 189 } 190 191 // Uint16Map returns a map of uint16 pointers from the values 192 // passed in. 193 func Uint16Map(vs map[string]uint16) map[string]*uint16 { 194 return ptr.Uint16Map(vs) 195 } 196 197 // Uint32 returns a pointer value for the uint32 value passed in. 198 func Uint32(v uint32) *uint32 { 199 return ptr.Uint32(v) 200 } 201 202 // Uint32Slice returns a slice of uint32 pointers from the values 203 // passed in. 204 func Uint32Slice(vs []uint32) []*uint32 { 205 return ptr.Uint32Slice(vs) 206 } 207 208 // Uint32Map returns a map of uint32 pointers from the values 209 // passed in. 210 func Uint32Map(vs map[string]uint32) map[string]*uint32 { 211 return ptr.Uint32Map(vs) 212 } 213 214 // Uint64 returns a pointer value for the uint64 value passed in. 215 func Uint64(v uint64) *uint64 { 216 return ptr.Uint64(v) 217 } 218 219 // Uint64Slice returns a slice of uint64 pointers from the values 220 // passed in. 221 func Uint64Slice(vs []uint64) []*uint64 { 222 return ptr.Uint64Slice(vs) 223 } 224 225 // Uint64Map returns a map of uint64 pointers from the values 226 // passed in. 227 func Uint64Map(vs map[string]uint64) map[string]*uint64 { 228 return ptr.Uint64Map(vs) 229 } 230 231 // Float32 returns a pointer value for the float32 value passed in. 232 func Float32(v float32) *float32 { 233 return ptr.Float32(v) 234 } 235 236 // Float32Slice returns a slice of float32 pointers from the values 237 // passed in. 238 func Float32Slice(vs []float32) []*float32 { 239 return ptr.Float32Slice(vs) 240 } 241 242 // Float32Map returns a map of float32 pointers from the values 243 // passed in. 244 func Float32Map(vs map[string]float32) map[string]*float32 { 245 return ptr.Float32Map(vs) 246 } 247 248 // Float64 returns a pointer value for the float64 value passed in. 249 func Float64(v float64) *float64 { 250 return ptr.Float64(v) 251 } 252 253 // Float64Slice returns a slice of float64 pointers from the values 254 // passed in. 255 func Float64Slice(vs []float64) []*float64 { 256 return ptr.Float64Slice(vs) 257 } 258 259 // Float64Map returns a map of float64 pointers from the values 260 // passed in. 261 func Float64Map(vs map[string]float64) map[string]*float64 { 262 return ptr.Float64Map(vs) 263 } 264 265 // Time returns a pointer value for the time.Time value passed in. 266 func Time(v time.Time) *time.Time { 267 return ptr.Time(v) 268 } 269 270 // TimeSlice returns a slice of time.Time pointers from the values 271 // passed in. 272 func TimeSlice(vs []time.Time) []*time.Time { 273 return ptr.TimeSlice(vs) 274 } 275 276 // TimeMap returns a map of time.Time pointers from the values 277 // passed in. 278 func TimeMap(vs map[string]time.Time) map[string]*time.Time { 279 return ptr.TimeMap(vs) 280 } 281 282 // Duration returns a pointer value for the time.Duration value passed in. 283 func Duration(v time.Duration) *time.Duration { 284 return ptr.Duration(v) 285 } 286 287 // DurationSlice returns a slice of time.Duration pointers from the values 288 // passed in. 289 func DurationSlice(vs []time.Duration) []*time.Duration { 290 return ptr.DurationSlice(vs) 291 } 292 293 // DurationMap returns a map of time.Duration pointers from the values 294 // passed in. 295 func DurationMap(vs map[string]time.Duration) map[string]*time.Duration { 296 return ptr.DurationMap(vs) 297 }