package main
import (
"fmt"
"github.com/armantarkhanian/base58"
)
func main() {
ed, err := base58.New(base58.Flickr, 100000000000000)
if err != nil {
panic(err)
}
var (
userID int64 = 42
userIDString string = ed.Encode(userID)
newID int64 = ed.Decode(userIDString)
)
fmt.Println(userID) // 42
fmt.Println(userIDString) // MhQayQkd
fmt.Println(newID) // 42
}
-
Notifications
You must be signed in to change notification settings - Fork 0
armantarkhanian/base58
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Packages 0
No packages published