WebSafeBase64Decode  golang  (adapter zplay doubleclick )
func base64url_decode(s string) ([]byte, error) {
base64Str := strings.Map(func(r rune) rune {
switch r {
case '-':
return '+'
case '_':
return '/'
} return r
}, s) if pad := len(base64Str) % ; pad > {
base64Str += strings.Repeat("=", -pad)
} return base64.StdEncoding.DecodeString(base64Str)
}
05-11 13:49