bytesconv

package module
v0.0.0-...-22135ec Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2021 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

bytesconv provides conversion functions between slice of bytes and encoded formats.

B64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_" / No padding.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func B64ToBytes

func B64ToBytes(value string) []byte

B64ToBytes takes an encoded string and return a slice of bytes representation. Must have sanitized input value!

func B64ToBytesErr

func B64ToBytesErr(value string) ([]byte, error)

B64ToBytesErr takes an encoded string and return a slice of bytes representation and nil or an error.

func BytesToB64

func BytesToB64(value []byte) string

BytesToB64 takes a slice of bytes and returns an encoded string representation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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