base62

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package base62 base62编码实现方式 给定一个整数编码成固定的6位字符 Created by chenguolin 2018-08-22

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base622ID

func Base622ID(base62 string) int64

Base622ID 把一个6位base62编码字符串反解成id 返回-1表示解码失败

func ID2Base62

func ID2Base62(id int64) string

ID2Base62 把一个id编码成6位 base62字符 返回空串表示编码失败

Types

This section is empty.

Jump to

Keyboard shortcuts

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