package to
import "github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
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
Functions ¶
func BoolPtr ¶
BoolPtr returns a pointer to the provided bool.
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 Int32Ptr ¶
Int32Ptr returns a pointer to the provided int32.
func Int32PtrArray ¶
Int32PtrArray returns an array of *int32 from the specified values.
func Int64Ptr ¶
Int64Ptr returns a pointer to the provided int64.
func Int64PtrArray ¶
Int64PtrArray returns an array of *int64 from the specified values.
func StringPtr ¶
StringPtr returns a pointer to the provided string.
func StringPtrArray ¶
StringPtrArray returns an array of *string from the specified values.
func TimePtr ¶
TimePtr returns a pointer to the provided time.Time.
func TimePtrArray ¶
TimePtrArray returns an array of *time.Time from the specified values.
Source Files ¶
- Version
- v0.22.0
- Published
- Mar 3, 2022
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 8 minutes ago –
Tools for package owners.