Documentation
¶
Overview ¶
Package hex provides utilities for hexadecimal encoding and decoding operations. It wraps the standard library's encoding/hex package with additional error handling.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeString ¶
DecodeString decodes a hexadecimal string to its byte slice representation. Returns nil if the input string is not valid hexadecimal. This provides safer error handling compared to the standard library function. Optimized version with early validation to avoid unnecessary allocations.
func EncodeToString ¶
EncodeToString encodes a byte slice to its hexadecimal string representation. This is a direct wrapper around the standard library's hex.EncodeToString function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.