这个其实就是一行代码的事情
//buffer为字节类型 sEnc := base64.StdEncoding.EncodeToString(buffer)
decodeBytes, err := base64.StdEncoding.DecodeString(encodeString)
编码: url.QueryEscape(urltest)
url.QueryEscape(urltest)
解码url.QueryUnescape(encodeurl)
url.QueryUnescape(encodeurl)