base36

package module
Version: v0.0.0-...-a97f8c3 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2016 License: MIT Imports: 1 Imported by: 0

README

About

GoDoc

Implements Base36 encoding and decoding, which is useful to represent large integers in a case-insensitive alphanumeric way.

See example_test.go for usage

License

Under MIT

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(s string) uint64

Decode decodes a base36-encoded string

Example
package main

import (
	"fmt"

	"github.com/martinlindhe/base36"
)

func main() {

	fmt.Println(base36.Decode("15N9Z8L3AU4EB"))
}
Output:

5481594952936519619

func Encode

func Encode(value uint64) string

Encode encodes a value to base36

Example
package main

import (
	"fmt"

	"github.com/martinlindhe/base36"
)

func main() {

	fmt.Println(base36.Encode(5481594952936519619))
}
Output:

15N9Z8L3AU4EB

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL