typesconv

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolPtr

func BoolPtr(val bool) *bool

func BoolPtrDefValFunc

func BoolPtrDefValFunc(val *bool, defValFunc func() bool) *bool

BoolPtrDefValFunc if nil then executes returns defValFunc result as pointer

func BoolPtrToDefPtr

func BoolPtrToDefPtr(val *bool, defVal bool) *bool

BoolPtrToDefPtr if nil then 0

func BoolPtrToSimple

func BoolPtrToSimple(val *bool) bool

BoolPtrToSimple if nil then 0

func BoolPtrToSimpleDef

func BoolPtrToSimpleDef(val *bool, defVal bool) bool

BoolPtrToSimpleDef if nil then 0

func BytePtr

func BytePtr(val byte) *byte

func BytePtrDefValFunc

func BytePtrDefValFunc(val *byte, defValFunc func() byte) *byte

BytePtrDefValFunc if nil then executes returns defValFunc result as pointer

func BytePtrToDefPtr

func BytePtrToDefPtr(val *byte, defVal byte) *byte

BytePtrToDefPtr if nil then 0

func BytePtrToSimple

func BytePtrToSimple(val *byte) byte

BytePtrToSimple if nil then 0

func BytePtrToSimpleDef

func BytePtrToSimpleDef(val *byte, defVal byte) byte

BytePtrToSimpleDef if nil then 0

func FloatPtr

func FloatPtr(val float32) *float32

func FloatPtrDefValFunc

func FloatPtrDefValFunc(val *float32, defValFunc func() float32) *float32

FloatPtrDefValFunc if nil then executes returns defValFunc result as pointer

func FloatPtrToDefPtr

func FloatPtrToDefPtr(val *float32, defVal float32) *float32

FloatPtrToDefPtr if nil then 0

func FloatPtrToSimple

func FloatPtrToSimple(val *float32) float32

FloatPtrToSimple if nil then 0

func FloatPtrToSimpleDef

func FloatPtrToSimpleDef(val *float32, defVal float32) float32

FloatPtrToSimpleDef if nil then 0

func IntPtr

func IntPtr(val int) *int

func IntPtrDefValFunc

func IntPtrDefValFunc(val *int, defValFunc func() int) *int

IntPtrDefValFunc if nil then executes returns defValFunc result as pointer

func IntPtrToDefPtr

func IntPtrToDefPtr(val *int, defVal int) *int

IntPtrToDefPtr if nil then 0

func IntPtrToSimple

func IntPtrToSimple(val *int) int

IntPtrToSimple if nil then 0

func IntPtrToSimpleDef

func IntPtrToSimpleDef(val *int, defVal int) int

IntPtrToSimpleDef if nil then 0

func StringPtr

func StringPtr(val string) *string

func StringPtrDefValFunc

func StringPtrDefValFunc(val *string, defValFunc func() string) *string

StringPtrDefValFunc if nil then executes returns defValFunc result as pointer

func StringPtrToDefPtr

func StringPtrToDefPtr(val *string, defVal string) *string

StringPtrToDefPtr if nil then 0

func StringPtrToSimple

func StringPtrToSimple(val *string) string

StringPtrToSimple if nil then 0

func StringPtrToSimpleDef

func StringPtrToSimpleDef(val *string, defVal string) string

StringPtrToSimpleDef if nil then 0

Types

This section is empty.

Jump to

Keyboard shortcuts

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