TryGetBool tries to retrieve the boolean value from the parameter. Returns the underlying value on success, or false otherwise.
(name string)
| 373 | // TryGetBool tries to retrieve the boolean value from the parameter. |
| 374 | // Returns the underlying value on success, or false otherwise. |
| 375 | func (pars Params) TryGetBool(name string) bool { |
| 376 | val, err := pars.GetBool(name) |
| 377 | if err != nil { |
| 378 | return false |
| 379 | } |
| 380 | return val |
| 381 | } |
| 382 | |
| 383 | // GetInt8 returns the underlying int8 value from the parameter. |
| 384 | func (pars Params) GetInt8(name string) (int8, error) { |
no test coverage detected