TryGetUint32 tries to retrieve the uint32 value from the parameter. Returns the underlying value on success, or zero otherwise.
(name string)
| 465 | // TryGetUint32 tries to retrieve the uint32 value from the parameter. |
| 466 | // Returns the underlying value on success, or zero otherwise. |
| 467 | func (pars Params) TryGetUint32(name string) uint32 { |
| 468 | val, err := pars.GetUint32(name) |
| 469 | if err != nil { |
| 470 | return 0 |
| 471 | } |
| 472 | return val |
| 473 | } |
| 474 | |
| 475 | // GetInt32 returns the underlying int32 value from the parameter. |
| 476 | func (pars Params) GetInt32(name string) (int32, error) { |