package
module
Version:
v0.0.0-...-d6eb69b
Opens a new window with list of versions in this module.
Published: Jan 4, 2018
License: BSD-3-Clause
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Base62 encoding and decoding

Installation
go get kkn.fi/base62
Requirements
Contributing
Pull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
BSD-3-Clause. See LICENSE for details.
Documentation
¶
Package base62 implements base62 encoder and decoder.
Decode a base62 encoded string to int.
Returns an error if input s is not valid base62 literal [0-9a-zA-Z].
i, err := Decode("1B")
fmt.Println(i, err)
Output:
99 <nil>
Encode decoded integer to base62 string.
fmt.Println(Encode(99))
Output:
1B
Source Files
¶
Click to show internal directories.
Click to hide internal directories.