Created
September 10, 2018 09:49
-
-
Save dallarosa/6806fad172c836782814723087802c94 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/hex" | |
"fmt" | |
) | |
func main() { | |
msg := "73616d706c652074657874" | |
bs, err := hex.DecodeString(msg) | |
if err != nil { | |
panic(err) | |
} | |
fmt.Println(string(bs)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment