base62

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// CharacterSet consists of 62 characters [0-9][A-Z][a-z].
	Base         int64 = 62
	CharacterSet       = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
)

Functions

func Decode

func Decode(s string) (int64, error)

Decode returns a integer number of a base62 encoded string.

func Encode

func Encode(num int64) string

Encode returns a base62 representation as string of the given integer number.

Types

This section is empty.

Jump to

Keyboard shortcuts

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