Standard library / encoding/base32

encoding/base32.HexEncoding

Predefined extended hexadecimal alphabet using 0–9 and A–V; not ordinary base16 hexadecimal. Expected stdout: '8TNG====\n'.

Formal Syntax & Structure

go syntaxgo
var HexEncoding *Encoding

Working Example

Example Snippetgo
package main
import (  "encoding/base32"  "fmt")
func must(e error) {  if e != nil {    panic(e)  }}
func main() { fmt.Println(base32.HexEncoding.EncodeToString([]byte("Go"))) }
Go Reference