base62

package
v0.0.5-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package base62 provides simple implementation of Base62 encoding/ecoding. Borrowed from here: https://intersog.com/blog/how-to-write-a-custom-url-shortener-using-golang-and-redis/ unfortunately the source didn't provide any licencing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(encoded string) (int64, error)

Decode tries to decode a base62 encoded number.

func Encode

func Encode(number int64) string

Encode returns a base62 encoded number.

Types

This section is empty.

Jump to

Keyboard shortcuts

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