Documentation ¶
Overview ¶
Package util provides some useful methods that are used within the 'at' package. These methods include a method to extract bytes from a string.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnevenLength = errors.New("parse octets: uneven length of string") ErrUnexpected = errors.New("parse octets: met a non-HEX rune in string") )
Common errors.
Functions ¶
func HexString ¶
HexString produces a hex-string from bytes. Like a DEADBEEF, without prepending the 0x.
func MustBytes ¶
MustBytes is an alias for Bytes, except that it will panic if there is any parse error.
func SplitStringBySize ¶
SplitStringBySize Split string to parts by size (https://play.golang.org/p/uUKx0hsm_O)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.