MustGetUint16 returns the underlying uint16 value parameter. It panics if an error occurs while trying to get the parameter.
(name string)
| 409 | // MustGetUint16 returns the underlying uint16 value parameter. It panics if |
| 410 | // an error occurs while trying to get the parameter. |
| 411 | func (pars Params) MustGetUint16(name string) uint16 { |
| 412 | v, err := pars.GetUint16(name) |
| 413 | if err != nil { |
| 414 | panic(err) |
| 415 | } |
| 416 | return v |
| 417 | } |
| 418 | |
| 419 | // TryGetUint16 tries to retrieve the uint16 value from the parameter. |
| 420 | // Returns the underlying value on success, or zero otherwise. |