go-autorest: github.com/Azure/go-autorest/autorest/to Index | Files

package to

import "github.com/Azure/go-autorest/autorest/to"

Package to provides helpers to ease working with pointer values of marshalled structures.

Index

Package Files

convert.go

func Bool Uses

func Bool(b *bool) bool

Bool returns a bool value for the passed bool pointer. It returns false if the pointer is nil.

func BoolPtr Uses

func BoolPtr(b bool) *bool

BoolPtr returns a pointer to the passed bool.

func Float32 Uses

func Float32(i *float32) float32

Float32 returns an int value for the passed int pointer. It returns 0.0 if the pointer is nil.

func Float32Ptr Uses

func Float32Ptr(i float32) *float32

Float32Ptr returns a pointer to the passed float32.

func Float64 Uses

func Float64(i *float64) float64

Float64 returns an int value for the passed int pointer. It returns 0.0 if the pointer is nil.

func Float64Ptr Uses

func Float64Ptr(i float64) *float64

Float64Ptr returns a pointer to the passed float64.

func Int Uses

func Int(i *int) int

Int returns an int value for the passed int pointer. It returns 0 if the pointer is nil.

func Int32 Uses

func Int32(i *int32) int32

Int32 returns an int value for the passed int pointer. It returns 0 if the pointer is nil.

func Int32Ptr Uses

func Int32Ptr(i int32) *int32

Int32Ptr returns a pointer to the passed int32.

func Int64 Uses

func Int64(i *int64) int64

Int64 returns an int value for the passed int pointer. It returns 0 if the pointer is nil.

func Int64Ptr Uses

func Int64Ptr(i int64) *int64

Int64Ptr returns a pointer to the passed int64.

func IntPtr Uses

func IntPtr(i int) *int

IntPtr returns a pointer to the passed int.

func String Uses

func String(s *string) string

String returns a string value for the passed string pointer. It returns the empty string if the pointer is nil.

func StringMap Uses

func StringMap(msp map[string]*string) map[string]string

StringMap returns a map of strings built from the map of string pointers. The empty string is used for nil pointers.

func StringMapPtr Uses

func StringMapPtr(ms map[string]string) *map[string]*string

StringMapPtr returns a pointer to a map of string pointers built from the passed map of strings.

func StringPtr Uses

func StringPtr(s string) *string

StringPtr returns a pointer to the passed string.

func StringSlice Uses

func StringSlice(s *[]string) []string

StringSlice returns a string slice value for the passed string slice pointer. It returns a nil slice if the pointer is nil.

func StringSlicePtr Uses

func StringSlicePtr(s []string) *[]string

StringSlicePtr returns a pointer to the passed string slice.

Package to is imported by 724 packages. Updated 2018-07-21. Refresh now. Tools for package owners.