golang-hex-dumper
一个简单的十六进制转储库例程,用于需要深入研究二进制文件的诊断。 以十六进制显示字节。
随附gohexdump目录中的示例命令行工具。
go get github.com/glycerine/golang-hex-dumper/...
命令行使用:
gohexdump <file>
例子:
$ gohexdump /tmp/binarystuff
pos 00 hex: 85 a1 44 92 a5 68 65 6c '..D..hel'
pos 08 hex: 6c 6f a5 77 6f 72 6c 64 'lo.world'
pos 16 hex: a1 45 92 20 11 a1 47 91 '.E. ..G.'
pos 24