GetString retrieves a string 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 string)
| 274 | // If the key doesn't exist, it returns the provided default value. |
| 275 | // If the value exists but is of a different type, it panics. |
| 276 | func (o *Options) GetString(key string, def string) string { |
| 277 | return Get(o, key, def) |
| 278 | } |
| 279 | |
| 280 | // GetBool retrieves a bool value. |
| 281 | // If the key doesn't exist, it returns the provided default value. |
no test coverage detected