base32

package
v0.0.0-...-ee57881 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Implement Crockford's base32 encoding ref: https://www.crockford.com/base32.html

Index

Constants

View Source
const Alphabet = "0123456789ABCDEFGHJKMNPQRSTVWXYZ"

Alphabet of base32 encoding

Variables

View Source
var Separators = []rune{' ', '-'}

Separators permitted in base32-encoded string, they will be removed in normalization.

Functions

func Normalize

func Normalize(value string) (normalizedValue string, err error)

Normalize base32-encoded string to alphabet

Types

type InvalidBase32Character

type InvalidBase32Character rune

Input string contains invalid base32 character

func (InvalidBase32Character) Error

func (err InvalidBase32Character) Error() string

Jump to

Keyboard shortcuts

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