encoding

package
v0.0.0-...-1bf4dee Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InvalidLengthError = errors.New("invalid length of encoding")

Functions

func Base64ToBin

func Base64ToBin(s string) ([]byte, error)

Base64ToBin reads base64 string and converts to binary

func BinToBase64

func BinToBase64(r io.Reader) (string, error)

BinToBase64 encodes binary stream in base64

func BinToHex

func BinToHex(r io.Reader) (string, error)

BinToHex encodes data from reader into hex representation

func HexToBin

func HexToBin(s string) ([]byte, error)

HexToBin converts hex stream into represented byte slice

Types

type InvalidEncodingError

type InvalidEncodingError struct {
	// contains filtered or unexported fields
}

func (InvalidEncodingError) Error

func (e InvalidEncodingError) Error() string

Jump to

Keyboard shortcuts

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