7
0
gaore-common-sdk-go/sdk/utils/utils.go

13 lines
240 B
Go
Raw Normal View History

2020-08-04 00:51:19 +08:00
package utils
import "net/url"
func GetUrlFormedMap(source map[string]string) (urlEncoded string) {
urlEncoder := url.Values{}
for key, value := range source {
urlEncoder.Add(key, value)
}
urlEncoded = urlEncoder.Encode()
return
}