package ptr
Import Path
github.com/aws/smithy-go/ptr (on go.dev)
Dependency Relation
imports one package, and imported by 2 packages
Involved Source Files
Package ptr provides utilities for converting scalar literal type values to and from pointers inline.
Code generated by smithy-go/ptr/generate.go DO NOT EDIT.
Code generated by smithy-go/ptr/generate.go DO NOT EDIT.
Package-Level Functions (total 102, all are exported)
Bool returns a pointer value for the bool value passed in.
BoolMap returns a map of bool pointers from the values
passed in.
BoolSlice returns a slice of bool pointers from the values
passed in.
Byte returns a pointer value for the byte value passed in.
ByteMap returns a map of byte pointers from the values
passed in.
ByteSlice returns a slice of byte pointers from the values
passed in.
Duration returns a pointer value for the time.Duration value passed in.
DurationMap returns a map of time.Duration pointers from the values
passed in.
DurationSlice returns a slice of time.Duration pointers from the values
passed in.
Float32 returns a pointer value for the float32 value passed in.
Float32Map returns a map of float32 pointers from the values
passed in.
Float32Slice returns a slice of float32 pointers from the values
passed in.
Float64 returns a pointer value for the float64 value passed in.
Float64Map returns a map of float64 pointers from the values
passed in.
Float64Slice returns a slice of float64 pointers from the values
passed in.
Int returns a pointer value for the int value passed in.
Int16 returns a pointer value for the int16 value passed in.
Int16Map returns a map of int16 pointers from the values
passed in.
Int16Slice returns a slice of int16 pointers from the values
passed in.
Int32 returns a pointer value for the int32 value passed in.
Int32Map returns a map of int32 pointers from the values
passed in.
Int32Slice returns a slice of int32 pointers from the values
passed in.
Int64 returns a pointer value for the int64 value passed in.
Int64Map returns a map of int64 pointers from the values
passed in.
Int64Slice returns a slice of int64 pointers from the values
passed in.
Int8 returns a pointer value for the int8 value passed in.
Int8Map returns a map of int8 pointers from the values
passed in.
Int8Slice returns a slice of int8 pointers from the values
passed in.
IntMap returns a map of int pointers from the values
passed in.
IntSlice returns a slice of int pointers from the values
passed in.
String returns a pointer value for the string value passed in.
StringMap returns a map of string pointers from the values
passed in.
StringSlice returns a slice of string pointers from the values
passed in.
Time returns a pointer value for the time.Time value passed in.
TimeMap returns a map of time.Time pointers from the values
passed in.
TimeSlice returns a slice of time.Time pointers from the values
passed in.
ToBool returns bool value dereferenced if the passed
in pointer was not nil. Returns a bool zero value if the
pointer was nil.
ToBoolMap returns a map of bool values, that are
dereferenced if the passed in pointer was not nil. The bool
zero value is used if the pointer was nil.
ToBoolSlice returns a slice of bool values, that are
dereferenced if the passed in pointer was not nil. Returns a bool
zero value if the pointer was nil.
ToByte returns byte value dereferenced if the passed
in pointer was not nil. Returns a byte zero value if the
pointer was nil.
ToByteMap returns a map of byte values, that are
dereferenced if the passed in pointer was not nil. The byte
zero value is used if the pointer was nil.
ToByteSlice returns a slice of byte values, that are
dereferenced if the passed in pointer was not nil. Returns a byte
zero value if the pointer was nil.
ToDuration returns time.Duration value dereferenced if the passed
in pointer was not nil. Returns a time.Duration zero value if the
pointer was nil.
ToDurationMap returns a map of time.Duration values, that are
dereferenced if the passed in pointer was not nil. The time.Duration
zero value is used if the pointer was nil.
ToDurationSlice returns a slice of time.Duration values, that are
dereferenced if the passed in pointer was not nil. Returns a time.Duration
zero value if the pointer was nil.
ToFloat32 returns float32 value dereferenced if the passed
in pointer was not nil. Returns a float32 zero value if the
pointer was nil.
ToFloat32Map returns a map of float32 values, that are
dereferenced if the passed in pointer was not nil. The float32
zero value is used if the pointer was nil.
ToFloat32Slice returns a slice of float32 values, that are
dereferenced if the passed in pointer was not nil. Returns a float32
zero value if the pointer was nil.
ToFloat64 returns float64 value dereferenced if the passed
in pointer was not nil. Returns a float64 zero value if the
pointer was nil.
ToFloat64Map returns a map of float64 values, that are
dereferenced if the passed in pointer was not nil. The float64
zero value is used if the pointer was nil.
ToFloat64Slice returns a slice of float64 values, that are
dereferenced if the passed in pointer was not nil. Returns a float64
zero value if the pointer was nil.
ToInt returns int value dereferenced if the passed
in pointer was not nil. Returns a int zero value if the
pointer was nil.
ToInt16 returns int16 value dereferenced if the passed
in pointer was not nil. Returns a int16 zero value if the
pointer was nil.
ToInt16Map returns a map of int16 values, that are
dereferenced if the passed in pointer was not nil. The int16
zero value is used if the pointer was nil.
ToInt16Slice returns a slice of int16 values, that are
dereferenced if the passed in pointer was not nil. Returns a int16
zero value if the pointer was nil.
ToInt32 returns int32 value dereferenced if the passed
in pointer was not nil. Returns a int32 zero value if the
pointer was nil.
ToInt32Map returns a map of int32 values, that are
dereferenced if the passed in pointer was not nil. The int32
zero value is used if the pointer was nil.
ToInt32Slice returns a slice of int32 values, that are
dereferenced if the passed in pointer was not nil. Returns a int32
zero value if the pointer was nil.
ToInt64 returns int64 value dereferenced if the passed
in pointer was not nil. Returns a int64 zero value if the
pointer was nil.
ToInt64Map returns a map of int64 values, that are
dereferenced if the passed in pointer was not nil. The int64
zero value is used if the pointer was nil.
ToInt64Slice returns a slice of int64 values, that are
dereferenced if the passed in pointer was not nil. Returns a int64
zero value if the pointer was nil.
ToInt8 returns int8 value dereferenced if the passed
in pointer was not nil. Returns a int8 zero value if the
pointer was nil.
ToInt8Map returns a map of int8 values, that are
dereferenced if the passed in pointer was not nil. The int8
zero value is used if the pointer was nil.
ToInt8Slice returns a slice of int8 values, that are
dereferenced if the passed in pointer was not nil. Returns a int8
zero value if the pointer was nil.
ToIntMap returns a map of int values, that are
dereferenced if the passed in pointer was not nil. The int
zero value is used if the pointer was nil.
ToIntSlice returns a slice of int values, that are
dereferenced if the passed in pointer was not nil. Returns a int
zero value if the pointer was nil.
ToString returns string value dereferenced if the passed
in pointer was not nil. Returns a string zero value if the
pointer was nil.
ToStringMap returns a map of string values, that are
dereferenced if the passed in pointer was not nil. The string
zero value is used if the pointer was nil.
ToStringSlice returns a slice of string values, that are
dereferenced if the passed in pointer was not nil. Returns a string
zero value if the pointer was nil.
ToTime returns time.Time value dereferenced if the passed
in pointer was not nil. Returns a time.Time zero value if the
pointer was nil.
ToTimeMap returns a map of time.Time values, that are
dereferenced if the passed in pointer was not nil. The time.Time
zero value is used if the pointer was nil.
ToTimeSlice returns a slice of time.Time values, that are
dereferenced if the passed in pointer was not nil. Returns a time.Time
zero value if the pointer was nil.
ToUint returns uint value dereferenced if the passed
in pointer was not nil. Returns a uint zero value if the
pointer was nil.
ToUint16 returns uint16 value dereferenced if the passed
in pointer was not nil. Returns a uint16 zero value if the
pointer was nil.
ToUint16Map returns a map of uint16 values, that are
dereferenced if the passed in pointer was not nil. The uint16
zero value is used if the pointer was nil.
ToUint16Slice returns a slice of uint16 values, that are
dereferenced if the passed in pointer was not nil. Returns a uint16
zero value if the pointer was nil.
ToUint32 returns uint32 value dereferenced if the passed
in pointer was not nil. Returns a uint32 zero value if the
pointer was nil.
ToUint32Map returns a map of uint32 values, that are
dereferenced if the passed in pointer was not nil. The uint32
zero value is used if the pointer was nil.
ToUint32Slice returns a slice of uint32 values, that are
dereferenced if the passed in pointer was not nil. Returns a uint32
zero value if the pointer was nil.
ToUint64 returns uint64 value dereferenced if the passed
in pointer was not nil. Returns a uint64 zero value if the
pointer was nil.
ToUint64Map returns a map of uint64 values, that are
dereferenced if the passed in pointer was not nil. The uint64
zero value is used if the pointer was nil.
ToUint64Slice returns a slice of uint64 values, that are
dereferenced if the passed in pointer was not nil. Returns a uint64
zero value if the pointer was nil.
ToUint8 returns uint8 value dereferenced if the passed
in pointer was not nil. Returns a uint8 zero value if the
pointer was nil.
ToUint8Map returns a map of uint8 values, that are
dereferenced if the passed in pointer was not nil. The uint8
zero value is used if the pointer was nil.
ToUint8Slice returns a slice of uint8 values, that are
dereferenced if the passed in pointer was not nil. Returns a uint8
zero value if the pointer was nil.
ToUintMap returns a map of uint values, that are
dereferenced if the passed in pointer was not nil. The uint
zero value is used if the pointer was nil.
ToUintSlice returns a slice of uint values, that are
dereferenced if the passed in pointer was not nil. Returns a uint
zero value if the pointer was nil.
Uint returns a pointer value for the uint value passed in.
Uint16 returns a pointer value for the uint16 value passed in.
Uint16Map returns a map of uint16 pointers from the values
passed in.
Uint16Slice returns a slice of uint16 pointers from the values
passed in.
Uint32 returns a pointer value for the uint32 value passed in.
Uint32Map returns a map of uint32 pointers from the values
passed in.
Uint32Slice returns a slice of uint32 pointers from the values
passed in.
Uint64 returns a pointer value for the uint64 value passed in.
Uint64Map returns a map of uint64 pointers from the values
passed in.
Uint64Slice returns a slice of uint64 pointers from the values
passed in.
Uint8 returns a pointer value for the uint8 value passed in.
Uint8Map returns a map of uint8 pointers from the values
passed in.
Uint8Slice returns a slice of uint8 pointers from the values
passed in.
UintMap returns a map of uint pointers from the values
passed in.
UintSlice returns a slice of uint pointers from the values
passed in.
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)