TryGetUint64 tries to retrieve the uint64 value from the parameter. Returns the underlying value on success, or zero otherwise.
(name string)
| 511 | // TryGetUint64 tries to retrieve the uint64 value from the parameter. |
| 512 | // Returns the underlying value on success, or zero otherwise. |
| 513 | func (pars Params) TryGetUint64(name string) uint64 { |
| 514 | val, err := pars.GetUint64(name) |
| 515 | if err != nil { |
| 516 | return 0 |
| 517 | } |
| 518 | return val |
| 519 | } |
| 520 | |
| 521 | // GetInt64 returns the underlying int64 value from the parameter. |
| 522 | func (pars Params) GetInt64(name string) (int64, error) { |
no test coverage detected