Skip to content

Commit

Permalink
Relicense my own utility as MIT
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Nov 26, 2023
1 parent 757c88c commit 50bf780
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions util/unpadded_base64.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package util

import (
"encoding/base64"
)

func DecodeUnpaddedBase64String(val string) ([]byte, error) {
return base64.RawStdEncoding.DecodeString(val)
}

func EncodeUnpaddedBase64ToString(val []byte) string {
return base64.RawStdEncoding.EncodeToString(val)
}

0 comments on commit 50bf780

Please sign in to comment.