Golang encoding/base64.NewEncoding function example

package encoding/base64

NewEncoding returns a new Encoding defined by the given alphabet, which must be a 64-byte string.

Golang encoding/base64.NewEncoding function usage example

 const alphabet = "./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
 var abcEncoding = base64.NewEncoding(alphabet)

References :

http://golang.org/pkg/encoding/base64/#NewEncoding

https://www.socketloop.com/references/golang-encoding-base32-newencoding-function-examples

  See also : Golang encoding/base32.NewEncoding function examples

Advertisement