base62

package
v3.1.32 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(s string) (uint64, error)

Decode 将 Base62 字符串解码为 uint64 数字

func DecodeString

func DecodeString(s string) (string, error)

DecodeString 将 Base62 字符串解码为原始字符串

func Encode

func Encode(num uint64) string

Encode 将 uint64 数字编码为 Base62 字符串

func EncodeInt

func EncodeInt(num int64) (string, error)

EncodeInt 将 int64 数字编码为 Base62 字符串

func EncodeString

func EncodeString(s string) string

EncodeString 将字符串编码为 Base62 字符串

func MustDecode

func MustDecode(s string) uint64

MustDecode 解码 Base62 字符串,如果出错则 panic

Types

This section is empty.

Jump to

Keyboard shortcuts

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