to

package
v0.21.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2022 License: MIT Imports: 1 Imported by: 1,503

Documentation

Overview

Package to contains various type-conversion helper functions.

Index

Constants

This section is empty.

Variables

This section is empty.

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL