9951 explained code solutions for 126 technologies


golangDecode value for base64


package main
import (
  b64 "encoding/base64"
  "fmt"
)

func main() {
  bytes,_ := b64.StdEncoding.DecodeString("SGk=")
  str := string(bytes)
}ctrl + c
b64 "encoding/base64"

load module to work with base64

b64.StdEncoding.DecodeString

decodes given base64 string to bytes

"SGk="

sample base64 string to decode

string(bytes)

convert resulting bytes to string