Has checks if an option key exists.
(key string)
| 179 | |
| 180 | // Has checks if an option key exists. |
| 181 | func (o *Options) Has(key string) bool { |
| 182 | _, ok := o.m[key] |
| 183 | return ok |
| 184 | } |
| 185 | |
| 186 | // GetInt retrieves an int value from the options. |
| 187 | // If the key does not exist, GetInt returns the provided default value. |
no outgoing calls