pointers

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: MIT Imports: 1 Imported by: 39

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(val *bool) bool

Bool ...

func BoolWithDefault

func BoolWithDefault(val *bool, defaultValue bool) bool

BoolWithDefault ...

func Int

func Int(val *int) int

Int ...

func IntWithDefault

func IntWithDefault(val *int, defaultValue int) int

IntWithDefault ...

func NewBoolPtr

func NewBoolPtr(val bool) *bool

NewBoolPtr ...

func NewInt64Ptr

func NewInt64Ptr(val int64) *int64

NewInt64Ptr ...

func NewIntPtr

func NewIntPtr(val int) *int

NewIntPtr ...

func NewMapStringInterfacePtr

func NewMapStringInterfacePtr(val map[string]interface{}) *map[string]interface{}

NewMapStringInterfacePtr ...

func NewStringPtr

func NewStringPtr(val string) *string

NewStringPtr ...

func NewTimePtr

func NewTimePtr(val time.Time) *time.Time

NewTimePtr ...

func String

func String(val *string) string

String ...

func StringWithDefault

func StringWithDefault(val *string, defaultValue string) string

StringWithDefault ...

func TimeWithDefault

func TimeWithDefault(val *time.Time, defaultValue time.Time) time.Time

TimeWithDefault ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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