Documentation
¶
Index ¶
- func PointerBool(prm bool) *bool
- func PointerByte(prm byte) *byte
- func PointerComplex64(prm complex64) *complex64
- func PointerComplex128(prm complex128) *complex128
- func PointerFloat32(prm float32) *float32
- func PointerFloat64(prm float64) *float64
- func PointerInt(prm int) *int
- func PointerInt8(prm int8) *int8
- func PointerInt16(prm int16) *int16
- func PointerInt32(prm int32) *int32
- func PointerInt64(prm int64) *int64
- func PointerRune(prm rune) *rune
- func PointerString(prm string) *string
- func PointerUUID(id uuid.UUID) *uuid.UUID
- func PointerUint(prm uint) *uint
- func PointerUint8(prm uint8) *uint8
- func PointerUint16(prm uint16) *uint16
- func PointerUint32(prm uint32) *uint32
- func PointerUint64(prm uint64) *uint64
- func SafeGetBoolValue(m map[string]interface{}, key string, defaultValue bool) bool
- func SafeGetFloat64Value(m map[string]interface{}, key string, defaultValue float64) float64
- func SafeGetInt64Value(m map[string]interface{}, key string, defaultValue int64) int64
- func SafeGetIntValue(m map[string]interface{}, key string, defaultValue int) int
- func SafeGetStringValue(m map[string]interface{}, key string, defaultValue string) string
- func SafeGetValue(m map[string]interface{}, key string, defaultValue interface{}) interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PointerBool ¶
PointerBool returns a pointer to the given bool. It is useful for creating pointers to bool values.
func PointerByte ¶
PointerByte returns a pointer to the given byte. It is useful for creating pointers to byte values.
func PointerComplex64 ¶
PointerComplex64 returns a pointer to the given complex64. It is useful for creating pointers to complex64 values.
func PointerComplex128 ¶
func PointerComplex128(prm complex128) *complex128
PointerComplex128 returns a pointer to the given complex128. It is useful for creating pointers to complex128 values.
func PointerFloat32 ¶
PointerFloat32 returns a pointer to the given float32. It is useful for creating pointers to float32 values.
func PointerFloat64 ¶
PointerFloat64 returns a pointer to the given float64. It is useful for creating pointers to float64 values.
func PointerInt ¶
PointerInt returns a pointer to the given int. It is useful for creating pointers to int values.
func PointerInt8 ¶
PointerInt8 returns a pointer to the given int8. It is useful for creating pointers to int8 values.
func PointerInt16 ¶
PointerInt16 returns a pointer to the given int16. It is useful for creating pointers to int16 values.
func PointerInt32 ¶
PointerInt32 returns a pointer to the given int32. It is useful for creating pointers to int32 values.
func PointerInt64 ¶
PointerInt64 returns a pointer to the given int64. It is useful for creating pointers to int64 values.
func PointerRune ¶
PointerRune returns a pointer to the given rune. It is useful for creating pointers to rune values.
func PointerString ¶
PointerString returns a pointer to the given string. It is useful for creating pointers to string values.
func PointerUUID ¶
PointerUUID returns a pointer to the given UUID. It is useful for creating pointers to UUID values.
func PointerUint ¶
PointerUint returns a pointer to the given uint. It is useful for creating pointers to uint values.
func PointerUint8 ¶
PointerUint8 returns a pointer to the given uint8. It is useful for creating pointers to uint8 values.
func PointerUint16 ¶
PointerUint16 returns a pointer to the given uint16. It is useful for creating pointers to uint16 values.
func PointerUint32 ¶
PointerUint32 returns a pointer to the given uint32. It is useful for creating pointers to uint32 values.
func PointerUint64 ¶
PointerUint64 returns a pointer to the given uint64. It is useful for creating pointers to uint64 values.
func SafeGetBoolValue ¶
SafeGetBoolValue safely retrieves a bool value from a map by key. If the key is not found or the value is not a bool, it returns the default value.
func SafeGetFloat64Value ¶
SafeGetFloat64Value safely retrieves a float64 value from a map by key. If the key is not found or the value is not a float64, it returns the default value.
func SafeGetInt64Value ¶
SafeGetInt64Value safely retrieves an int64 value from a map by key. If the key is not found or the value is not an int64, it returns the default value.
func SafeGetIntValue ¶
SafeGetIntValue safely retrieves an int value from a map by key. If the key is not found or the value is not an int, it returns the default value.
func SafeGetStringValue ¶
SafeGetStringValue safely retrieves a string value from a map by key. If the key is not found or the value is not a string, it returns the default value.
func SafeGetValue ¶
SafeGetValue safely retrieves a value of any type from a map by key. If the key is not found or the value cannot be cast to the desired type, it returns the default value.
Types ¶
This section is empty.