base36

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package base36 provides a reasonably fast implementation of a binary base36 codec.

Index

Constants

View Source
const LcAlphabet = "0123456789abcdefghijklmnopqrstuvwxyz"
View Source
const UcAlphabet = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"

Variables

This section is empty.

Functions

func DecodeString

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

DecodeString takes a base36 encoded string and returns a slice of the decoded bytes.

func EncodeToStringLc

func EncodeToStringLc(b []byte) string

EncodeToStringLc encodes the given byte-buffer as base36 using [0-9a-z] as the digit-alphabet

func EncodeToStringUc

func EncodeToStringUc(b []byte) string

EncodeToStringUc encodes the given byte-buffer as base36 using [0-9A-Z] as the digit-alphabet

Types

This section is empty.

Jump to

Keyboard shortcuts

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