base62

package module
v0.0.0-...-d5f2747 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2013 License: MIT Imports: 2 Imported by: 7

README

go-base62

base62 conversions fo Go. Useful for url shorteners. #go #golang

Docs at http://godoc.org/github.com/pilu/go-base62

Author

Documentation

Overview

Package base62 implements conversion to and from base62. Useful for url shorteners.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(token string) int

converts base62 token to int

Example
fmt.Println(Decode("1B"))
Output:

99

func Encode

func Encode(number int) string

converts number to base62

Example
fmt.Println(Encode(99))
Output:

1B

Types

This section is empty.

Jump to

Keyboard shortcuts

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