base64url/base64url.go
func Encode(data []byte) string {
	result := base64.StdEncoding.EncodeToString(data)
	result = strings.Replace(result, "+", "-", -1) // 62nd char of encoding
	result = strings.Replace(result, "/", "_", -1) // 63rd char of encoding
	result = strings.Replace(result, "=", "", -1)  // Remove any trailing '='s
	
	return result
}
func Encode(data []byte) string {
	result := base64.StdEncoding.EncodeToString(data)
	result = strings.Replace(result, "+", "-", -1) // 62nd char of encoding
	result = strings.Replace(result, "/", "_", -1) // 63rd char of encoding
	result = strings.Replace(result, "=", "", -1)  // Remove any trailing '='s
	
	return result
}
func Encode ( data [ ] byte ) string { result := base64 . StdEncoding . EncodeToString ( data ) result = strings . Replace ( result , " " , " " , - 1 ) // 62nd char of encoding result = strings . Replace ( result , " " , " " , - 1 ) // 63rd char of encoding result = strings . Replace ( result , " " , " " , - 1 ) // Remove any trailing '='s return result }
// Encode encodes given byte array to base64url string
Encode encodes given byte array to base64url string