Simple hexdump cmd and API for Go.
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"'