---
title: "Discussion on \"Go Cheatsheet - base64,32,58 encoding\" | Hashnode"
description: "Discussion on \"Go Cheatsheet - base64,32,58 encoding\". base64,32,58 encoding\nbase64\nStandard Encoding/Decoding\nimport (\n    \"encoding/base64\"\n    \"fmt\"\n)\n\nfunc main() {\n    data := []byte(\"test data\")\n\n    b64Enc := base64.StdEncoding.EncodeToString([]byte(data))\n    fmt.Println(\"B64 Encoded:\", b64Enc)\n ..."
url: "https://hashnode.com/posts/go-cheatsheet-base643258-encoding/60807d70eb2bd30d2d22e18d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Go Cheatsheet - base64,32,58 encoding](https://hn.0xbf.me/go-cheatsheet-base643258-encoding?utm_source=hashnode&utm_medium=feed)

base64,32,58 encoding base64 Standard Encoding/Decoding import ( "encoding/base64" "fmt" ) func main() { data := \[\]byte("test data") b64Enc := base64.StdEncoding.EncodeToString(\[\]byte(data)) fmt.Println("B64 Encoded:", b64Enc) ...

Apr 21, 2021 · 1 min read · hn.0xbf.me  
Updated Apr 22, 2021  
Read the article

-   [#go](https://hashnode.com/tag/go)

## Written by

[0xBF](https://hashnode.com/@0xbf)

@0xbf

  
[View profile](https://hashnode.com/@0xbf)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
