sorry for such a trivial question, but my understanding of encoding on 
different bases are limited.

In the below code

https://play.golang.org/p/q-F0p00bie

```
package main

import (
"encoding/hex"
"fmt"
)

func main() {
id, err := hex.DecodeString("32")
if err != nil {
panic(err)
}

// id =>  []byte{0x32}))
fmt.Printf("%s\n", id)
}
```
this prints 2. 

0x32 is 50 in base 10, so if it prints 2, what exactly it converts to when 
print as string? I mean, how 0x32 -> 2

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to