base62

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

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

Go to latest
Published: Jun 6, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

README

base62

Go base62 encoding and decoding

go doc

Install

go get github.com/TheFutureIsOurs/base62

How to use

// encode
num := 264688217293324297
str := base62.Encode(int64(num))
fmt.Println(str)

// decodde
res, err := base62.Decode(str)
fmt.Println(res, err)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(s string) (int64, error)

Decode decode a string to num

func Encode

func Encode(num int64) string

Encode encode a num to string

Types

This section is empty.

Jump to

Keyboard shortcuts

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