base36

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: Apache-2.0, MIT Imports: 1 Imported by: 14 modules, 13 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

multiformats/go-base36

Simple base36 codec

This is an optimized codec for []byte <=> base36 string conversion

Documentation

https://pkg.go.dev/github.com/multiformats/go-base36

Lead Maintainer

Steven Allen

Contributing

Contributions are welcome! This repository is related to the IPFS project and therefore governed by our contributing guidelines.

License

SPDX-License-Identifier: Apache-2.0 OR MIT

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
⌂ 换网址