mirror of
https://github.com/h44z/wg-portal.git
synced 2025-09-15 15:21:14 +00:00
chore: use interfaces for web related services
This commit is contained in:
@@ -5,6 +5,9 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Base64UrlDecode decodes a base64 url encoded string.
|
||||
// In comparison to the standard base64 encoding, the url encoding uses - instead of + and _ instead of /
|
||||
// as well as . instead of =.
|
||||
func Base64UrlDecode(in string) string {
|
||||
in = strings.ReplaceAll(in, "-", "=")
|
||||
in = strings.ReplaceAll(in, "_", "/")
|
||||
|
Reference in New Issue
Block a user