Fixed the width, its only for the looks

This commit is contained in:
2024-10-29 14:52:21 +00:00
parent 78a2512410
commit dbf30c1d4e
+2 -2
View File
@@ -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")
}