GetTime retrieves a [time.Time] value. If the key doesn't exist, it returns the zero time. If the value exists but is of a different type, it panics.
(key string)
| 288 | // If the key doesn't exist, it returns the zero time. |
| 289 | // If the value exists but is of a different type, it panics. |
| 290 | func (o *Options) GetTime(key string) time.Time { |
| 291 | return Get(o, key, time.Time{}) |
| 292 | } |
| 293 | |
| 294 | // Map returns a copy of the Options as a map[string]any |
| 295 | // If the Options has a child, it combines the main and child maps, |