You’re quoting the help for %x for strings and byte slices. For integers it
simply says "base 16, with lower-case letters for a-f” and thus behaves like
any other number base usually does. In this case, you want “%02x”.
//jb
On 21 Feb 2018, at 12:06, David Renne
mailto:davidre...@gmail.com>> w
https://play.golang.org/p/XZimA47p9qM
Why isnt this formatted with two bytes below 10 and is merely 0-9 instead
of 00, 01, 02 etc etc with a left padded zero?
The documentation of %x for sprintf made me think that this would keep a
left padded zero on my string for 0-9, so I merely abstracte