Documentation ¶
Overview ¶
Package to contains various type-conversion helper functions.
Index ¶
- func BoolPtr(b bool) *bool
- func BoolPtrArray(vals ...bool) []*bool
- func Float32Ptr(i float32) *float32
- func Float32PtrArray(vals ...float32) []*float32
- func Float64Ptr(i float64) *float64
- func Float64PtrArray(vals ...float64) []*float64
- func Int32Ptr(i int32) *int32
- func Int32PtrArray(vals ...int32) []*int32
- func Int64Ptr(i int64) *int64
- func Int64PtrArray(vals ...int64) []*int64
- func StringPtr(s string) *string
- func StringPtrArray(vals ...string) []*string
- func TimePtr(t time.Time) *time.Time
- func TimePtrArray(vals ...time.Time) []*time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolPtrArray ¶
BoolPtrArray returns an array of *bool from the specified values.
func Float32Ptr ¶
Float32Ptr returns a pointer to the provided float32.
func Float32PtrArray ¶
Float32PtrArray returns an array of *float32 from the specified values.
func Float64Ptr ¶
Float64Ptr returns a pointer to the provided float64.
func Float64PtrArray ¶
Float64PtrArray returns an array of *float64 from the specified values.
func Int32PtrArray ¶
Int32PtrArray returns an array of *int32 from the specified values.
func Int64PtrArray ¶
Int64PtrArray returns an array of *int64 from the specified values.
func StringPtrArray ¶
StringPtrArray returns an array of *string from the specified values.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.