package to

import "github.com/Azure/azure-sdk-for-go/sdk/azcore/to"

Package to contains various type-conversion helper functions.

Index

Functions

func BoolPtr

func BoolPtr(b bool) *bool

BoolPtr returns a pointer to the provided bool.

func BoolPtrArray

func BoolPtrArray(vals ...bool) []*bool

BoolPtrArray returns an array of *bool from the specified values.

func Float32Ptr

func Float32Ptr(i float32) *float32

Float32Ptr returns a pointer to the provided float32.

func Float32PtrArray

func Float32PtrArray(vals ...float32) []*float32

Float32PtrArray returns an array of *float32 from the specified values.

func Float64Ptr

func Float64Ptr(i float64) *float64

Float64Ptr returns a pointer to the provided float64.

func Float64PtrArray

func Float64PtrArray(vals ...float64) []*float64

Float64PtrArray returns an array of *float64 from the specified values.

func Int32Ptr

func Int32Ptr(i int32) *int32

Int32Ptr returns a pointer to the provided int32.

func Int32PtrArray

func Int32PtrArray(vals ...int32) []*int32

Int32PtrArray returns an array of *int32 from the specified values.

func Int64Ptr

func Int64Ptr(i int64) *int64

Int64Ptr returns a pointer to the provided int64.

func Int64PtrArray

func Int64PtrArray(vals ...int64) []*int64

Int64PtrArray returns an array of *int64 from the specified values.

func StringPtr

func StringPtr(s string) *string

StringPtr returns a pointer to the provided string.

func StringPtrArray

func StringPtrArray(vals ...string) []*string

StringPtrArray returns an array of *string from the specified values.

func TimePtr

func TimePtr(t time.Time) *time.Time

TimePtr returns a pointer to the provided time.Time.

func TimePtrArray

func TimePtrArray(vals ...time.Time) []*time.Time

TimePtrArray returns an array of *time.Time from the specified values.

Source Files

doc.go to.go

Version
v0.22.0
Published
Mar 3, 2022
Platform
js/wasm
Imports
1 packages
Last checked
8 minutes ago

Tools for package owners.