MustGetUint64 returns the underlying uint64 value parameter. It panics if an error occurs while trying to get the parameter.
(name string)
| 501 | // MustGetUint64 returns the underlying uint64 value parameter. It panics if |
| 502 | // an error occurs while trying to get the parameter. |
| 503 | func (pars Params) MustGetUint64(name string) uint64 { |
| 504 | v, err := pars.GetUint64(name) |
| 505 | if err != nil { |
| 506 | panic(err) |
| 507 | } |
| 508 | return v |
| 509 | } |
| 510 | |
| 511 | // TryGetUint64 tries to retrieve the uint64 value from the parameter. |
| 512 | // Returns the underlying value on success, or zero otherwise. |