GetMethodParamIntValue gets int method param
(method string, key string, d int)
| 732 | |
| 733 | // GetMethodParamIntValue gets int method param |
| 734 | func (c *URL) GetMethodParamIntValue(method string, key string, d int) int { |
| 735 | r, err := strconv.ParseInt(c.GetParam("methods."+method+"."+key, ""), 10, 0) |
| 736 | if err != nil { |
| 737 | return d |
| 738 | } |
| 739 | return int(r) |
| 740 | } |
| 741 | |
| 742 | // GetMethodParamInt64 gets int64 method param |
| 743 | func (c *URL) GetMethodParamInt64(method string, key string, d int64) int64 { |