* Order as in spec: bool byte complex64 complex128 error float32 float64 int int8 int16 int32 int64 rune string uint uint8 uint16 uint32 uint64 uintptr time.Duration time.Time */ GetBool returns the value of the bool pointer passed in or false if the pointer is nil.
(b *bool)
| 14 | |
| 15 | // GetBool returns the value of the bool pointer passed in or false if the pointer is nil. |
| 16 | func GetBool(b *bool) bool { |
| 17 | if b == nil { |
| 18 | return false |
| 19 | } |
| 20 | return *b |
| 21 | } |
| 22 | |
| 23 | // GetByte returns the value of the byte pointer passed in or 0 if the pointer is nil. |
| 24 | func GetByte(b *byte) byte { |