MCPcopy Create free account
hub / github.com/code-scan/Goal / UrlEncode

Function UrlEncode

Gconvert/url.go:25–28  ·  view source on GitHub ↗
(param string)

Source from the content-addressed store, hash-verified

23 return ret
24}
25func UrlEncode(param string) string {
26 ret := url.QueryEscape(param)
27 return strings.ReplaceAll(ret, "+", "%20")
28}
29
30func RawEncode(param string) string {
31 return strings.Replace(url.QueryEscape(param), "+", "%20", -1)

Callers 3

TestConvertFunction · 0.92
searhKeywordMethod · 0.92
BeianMethod · 0.92

Calls

no outgoing calls

Tested by 1

TestConvertFunction · 0.74