MustGetString returns the string parameter or panics if an error occurs while trying to get the parameter.
(name string)
| 250 | // MustGetString returns the string parameter or panics |
| 251 | // if an error occurs while trying to get the parameter. |
| 252 | func (pars Params) MustGetString(name string) string { |
| 253 | s, err := pars.GetString(name) |
| 254 | if err != nil { |
| 255 | panic(err) |
| 256 | } |
| 257 | return s |
| 258 | } |
| 259 | |
| 260 | // GetPid returns the pid from the parameter. |
| 261 | func (pars Params) GetPid() (uint32, error) { |
no test coverage detected