base62

package
v1.2.29 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//Base ...
	// CharacterSet consists of 62 characters [0-9][A-Z][a-z].
	Base int64 = 62
	//CharacterSet ...
	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