GetMethodParamInt gets int method param
(method string, key string, d int64)
| 723 | |
| 724 | // GetMethodParamInt gets int method param |
| 725 | func (c *URL) GetMethodParamInt(method string, key string, d int64) int64 { |
| 726 | r, err := strconv.ParseInt(c.GetParam("methods."+method+"."+key, ""), 10, 64) |
| 727 | if err != nil { |
| 728 | return d |
| 729 | } |
| 730 | return r |
| 731 | } |
| 732 | |
| 733 | // GetMethodParamIntValue gets int method param |
| 734 | func (c *URL) GetMethodParamIntValue(method string, key string, d int) int { |