//
pkg.gl
Category
github.com/hovanhoa/go-url-shortener
pkg
base62
package
0.0.0-20241220052035-5f3527097daa
Repository:
https://github.com/hovanhoa/go-url-shortener.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
1
Dependents
1
Files
99 SLOC
#
Functions
Decode
Decode attempts to convert a base 62 string back into an integer.
Encode
Encode converts the given integer into a base 62 string.
New
New returns a new Factory with the given variant of characters.
#
Constants
Base62
Base62 represents the base62 const.
#
Variables
DefaultChars
DefaultChars character set, [A-Za-z0-9].
#
Structs
Factory
Factory allows the creation of new base62 encoder/decoder with different variant of characters.