base64 encoding uses a 64-character symbol table used to encode the data into a string containing those symbols.
To convert a string to base64, we first need to convert it to a byte slice:
base64.StdEncoding.EncodeToString([]byte("text"))