Documentation ¶
Overview ¶
Package safe returns a safe scalar value from a possible nil pointer
Index ¶
- func Bool(b interface{}, def ...bool) bool
- func Int(i interface{}, def ...int) int
- func Int64(i interface{}, def ...int64) int64
- func StrEqual(s1, s2 interface{}) bool
- func String(s interface{}, def ...interface{}) string
- func Time(t interface{}, def ...time.Time) time.Time
- func Uint64(i interface{}, def ...uint64) uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StrEqual ¶
func StrEqual(s1, s2 interface{}) bool
StrEqual compares to values as strings safely
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.