MCPcopy Create free account
hub / github.com/apache/dubbo-go / GetMethodParamInt

Method GetMethodParamInt

common/url.go:725–731  ·  view source on GitHub ↗

GetMethodParamInt gets int method param

(method string, key string, d int64)

Source from the content-addressed store, hash-verified

723
724// GetMethodParamInt gets int method param
725func (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
734func (c *URL) GetMethodParamIntValue(method string, key string, d int) int {

Callers 2

TestURLGetMethodParamIntFunction · 0.95
GetMethodParamInt64Method · 0.95

Calls 1

GetParamMethod · 0.95

Tested by 1

TestURLGetMethodParamIntFunction · 0.76