Fixed the width, its only for the looks
This commit is contained in:
+2
-2
@@ -3,7 +3,7 @@ package utils
|
||||
import "fmt"
|
||||
|
||||
func HexDump(buf []byte) {
|
||||
fmt.Printf("\n============ HEX DUMP ============\n")
|
||||
fmt.Printf("\n============ HEX DUMP =============\n")
|
||||
for k := 0; k < len(buf); k++ {
|
||||
if k%4 == 0 && k > 0 {
|
||||
fmt.Printf(" ")
|
||||
@@ -15,5 +15,5 @@ func HexDump(buf []byte) {
|
||||
|
||||
fmt.Printf("%02X", buf[k])
|
||||
}
|
||||
fmt.Printf("\n============ HEX DUMP ============\n")
|
||||
fmt.Printf("\n============ HEX DUMP =============\n")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user