MustGetIP returns the IP address parameter or panics if an error occurs.
(name string)
| 620 | |
| 621 | // MustGetIP returns the IP address parameter or panics if an error occurs. |
| 622 | func (pars Params) MustGetIP(name string) net.IP { |
| 623 | ip, err := pars.GetIP(name) |
| 624 | if err != nil { |
| 625 | panic(err) |
| 626 | } |
| 627 | return ip |
| 628 | } |
| 629 | |
| 630 | // GetTime returns the underlying time structure from the parameter. |
| 631 | func (pars Params) GetTime(name string) (time.Time, error) { |