UintToHex converts an unsigned wide integer to hex string.
(v uint64)
| 25 | |
| 26 | // UintToHex converts an unsigned wide integer to hex string. |
| 27 | func UintToHex(v uint64) string { return strconv.FormatUint(v, 16) } |
| 28 | |
| 29 | // BytesToHex converts a byte slice to hex representation |
| 30 | func BytesToHex(b []byte) string { return fmt.Sprintf("%X", b) } |