Documentation ¶
Overview ¶
Package pointer provides helper functions for creating pointers of values and retrieving values of pointers
Index ¶
- func Bool(v bool) *bool
- func BoolVal(p *bool) bool
- func Float32(v float32) *float32
- func Float32Val(p *float32) float32
- func Float64(v float64) *float64
- func Float64Val(p *float64) float64
- func Int(v int) *int
- func IntVal(p *int) int
- func String(v string) *string
- func StringVal(p *string) string
- func UInt(v uint) *uint
- func UIntVal(p *uint) uint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Float32Val ¶
Float32Val converts float32 pointer to value with zero-value when nil
func Float64Val ¶
Float64Val converts float64 pointer to value with zero-value when nil
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.