Documentation ¶
Index ¶
- func Bool(val *bool) bool
- func BoolPtr(val bool) *bool
- func BoolString(val bool) string
- func Float32(val *float32) float32
- func Float32Ptr(val float32) *float32
- func Float64(val *float64) float64
- func Float64Ptr(val float64) *float64
- func Int(val *int) int
- func Int32(val *int32) int32
- func Int32Ptr(val int32) *int32
- func Int64(val *int64) int64
- func Int64Ptr(val int64) *int64
- func IntPtr(val int) *int
- func Number[N NumberInterface](val *N) N
- func NumberPtr[N NumberInterface](val N) *N
- func Ptr[N PointerInterface](val N) *N
- func Slice[N SliceInterface](val []*N) []N
- func SlicePtr[N SliceInterface](val []N) []*N
- func String(val *string) string
- func StringLower(val *string) string
- func StringMap(val map[string]*string) (ret map[string]string)
- func StringMapPtr(val map[string]string) *map[string]*string
- func StringPtr(val string) *string
- func UnixTime(val time.Time) float64
- func Val[N PointerInterface](val *N) N
- func Value[N PointerInterface](val *N) N
- func ValuePtr[N PointerInterface](val N) *N
- type NumberInterface
- type PointerInterface
- type SliceInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolString ¶
BoolString returns string (True/False) from a bool
func Float32Ptr ¶
Float32Ptr returns float32 ptr from float32 value
func Float64Ptr ¶
Float64Ptr returns float64 pointer from float64 value
func Number ¶
func Number[N NumberInterface](val *N) N
Number returns number from an number pointer (generic)
func NumberPtr ¶
func NumberPtr[N NumberInterface](val N) *N
NumberPtr returns number pointer from number (generic)
func Slice ¶
func Slice[N SliceInterface](val []*N) []N
Slice returns a slice with values from a slice with pointer values
func SlicePtr ¶
func SlicePtr[N SliceInterface](val []N) []*N
Slice returns a slice with pointer values from a slice with values
func StringLower ¶
StringLower returns lowercased string from a string pointer
func StringMapPtr ¶
StringMapPtr returns pointer to a map with string pointers from a string map
Types ¶
type NumberInterface ¶
type PointerInterface ¶
Click to show internal directories.
Click to hide internal directories.