Skip to content

Arm1stice/base62

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

base62

This package allows you to convert between uint64 numbers and base62 encoded strings. It was designed with URL shorteners in mind, which is why it only encodes uint64 numbers (I created this package to be used in my own personal URL shortener).

GoDoc

It has two functions

// Takes a uint64 typed number and returns a base62 encoded string
func ToB62(uint64) string {}

// Takes a base62 encoded string and returns a uint64 typed number and an optional error if there is an invalid character in the string
func FromB62(string) (uint64, error) {}

Using the package

You can import the package using the following command

go get github.com/wcalandro/base62

About

Convert numbers to and from base62

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages