Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 480 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 480 Bytes

Go Report Card

hexit

Hexit provides utility functions to convert uint* to hex. It's faster than using fmt.Sprintf, strconv.AppendUint or strconv.FormatUint.

Examples

buf := make([]byte, 8)
hexit.HexUint32To(num, buf)
buf := hexit.HexUint32(num)
str := hexit.HexUint16(num)
num := UnhexUint16("beef")