mongodb/base64.go

13 lines
242 B
Go
Raw Normal View History

2022-02-24 08:00:42 +00:00
package mongodb
import "encoding/base64"
func base64DecodeToBytes(text string) []byte {
s, _ := base64.StdEncoding.DecodeString(text)
return s
}
func base64DecodeToString(text string) string {
return string(base64DecodeToBytes(text))
}