Skip to content

james-antill/gohexdump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Go Report Card

Hexdump

Simple hexdump cmd and API for Go.

Command

Outputs 16 bytes at a time, cmd also reads from stdin if no arguments given.

Install with: go install github.com/james-antill/gohexdump/cmd/hexdump@latest

Roughly equivalent to:

% rpm -qf /usr/bin/hexdump
util-linux-2.11r-10

% hexdump -e '"%08_ax:"
              " " 2/1 "%02X"
              " " 2/1 "%02X"
              " " 2/1 "%02X"
              " " 2/1 "%02X"
              " " 2/1 "%02X"
              " " 2/1 "%02X"
              " " 2/1 "%02X"
              " " 2/1 "%02X"'
          -e '"  " 16 "%_p" "\n"'

Releases

No releases published

Packages

No packages published

Languages