GetBool retrieves a bool value. If the key doesn't exist, it returns the provided default value. If the value exists but is of a different type, it panics.
(key string, def bool)
| 281 | // If the key doesn't exist, it returns the provided default value. |
| 282 | // If the value exists but is of a different type, it panics. |
| 283 | func (o *Options) GetBool(key string, def bool) bool { |
| 284 | return Get(o, key, def) |
| 285 | } |
| 286 | |
| 287 | // GetTime retrieves a [time.Time] value. |
| 288 | // If the key doesn't exist, it returns the zero time. |