package
module
Version:
v0.0.0-...-a97f8c3
Opens a new window with list of versions in this module.
Published: Jun 7, 2016
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
About
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
¶
Decode decodes a base36-encoded string
package main
import (
"fmt"
"github.com/martinlindhe/base36"
)
func main() {
fmt.Println(base36.Decode("15N9Z8L3AU4EB"))
}
Output:
5481594952936519619
Encode encodes a value to base36
package main
import (
"fmt"
"github.com/martinlindhe/base36"
)
func main() {
fmt.Println(base36.Encode(5481594952936519619))
}
Output:
15N9Z8L3AU4EB
Source Files
¶
Click to show internal directories.
Click to hide internal directories.