Documentation ¶
Index ¶
- Constants
- func EuclideanDivision(numerator, denominator int) (quotient, remainder int, err error)
- func FromHex(input string) ([]byte, error)
- func HexToInt(input string) (number int, err error)
- func IntToHex(input int) string
- func LeftPad(str string, minLength int) string
- func RegexSplit(text string, delimiter string) []string
- func RightPad(str string, minLength int) string
- func ToHex(input []byte) string
- func Unpad(str string) string
Constants ¶
View Source
const ( // LEFT_PADDING_CHARACTER ... LEFT_PADDING_CHARACTER rune = 2 // Unicode U+0002: start of text // RIGHT_PADDING_CHARACTER ... RIGHT_PADDING_CHARACTER rune = 3 // Unicode U+0003: end of text )
Variables ¶
This section is empty.
Functions ¶
func EuclideanDivision ¶
EuclideanDivision returns the integer tuple (quotient, remainder) from the division of the past integers
func FromHex ¶
FromHex tries to convert an hexadecimal representation of a value to its corresponding byte array
func RegexSplit ¶
RegexSplit splits a string using a regular expression. see https://stackoverflow.com/questions/4466091/split-string-using-regular-expression-in-go
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.