hex

package
Version: v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 License: Unlicense Imports: 2 Imported by: 1

Documentation

Overview

Package hex implements hex encoding related utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(s string, l int) ([]byte, error)

Decode returns the bytes represented by the hexadecimal string s. Decode expects that src contain only lowercase hexadecimal characters and that the resulting byte slice has length l.

func Encode

func Encode(src []byte) string

Encode returns the hexadecimal encoding of src.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL