// IsHex validates whether each byte is valid hexadecimal string.
IsHex validates whether each byte is valid hexadecimal string.
// IsHex validates whether each byte is valid hexadecimal string .
func IsHex(str string) bool {
	if len(str)%2 != 0 {
		return false
	}
	for _, c := range []byte(str) {
		if !IsHexCharacter(c) {
			return false
		}
	}
	return true
}
func IsHex ( str string ) bool { if len ( str ) % 2 != 0 { return false } for _ , c := range [ ] byte ( str ) { if ! IsHexCharacter ( c ) { return false } } return true }
IsHex validates whether each byte is valid hexadecimal string.
IsHex validates whether each byte is valid hexadecimal string .