encoding

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeHex

func DecodeHex(str string) ([]byte, error)

on decode error (eg. non hex character in str) returns zero_value, error on checksum failure returns decoded_value, error (so users could warn about checksum but still use the decoded) if all is lower or upper then the checksum check is ignored (as the checksum was probably not taken into account)

func EncodeHex

func EncodeHex(data []byte) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL