shortlink

package
v0.0.0-...-07ef6c8 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: Artistic-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CodeSlice = []string{"D", "v", "b", "G", "H", "U", "K", "1", "o", "V", "8", "y",
		"P", "9", "3", "2", "4", "Z", "0", "M", "R", "E", "g", "6", "S", "u", "X", "j", "7",
		"d", "a", "5", "p", "F", "l", "m", "s", "L", "W", "h", "C", "z", "T", "r", "Y", "J",
		"q", "B", "w", "A", "O", "n", "I", "N", "x", "f", "c", "i", "k",
		"e", "t", "Q"}

	Order = []int{18, 3, 30, 25, 1, 4, 32, 0, 2, 7, 23, 24, 6, 15, 10, 31, 26, 19, 9, 34, 16, 29, 20, 14, 33, 28, 21, 27, 17, 22, 8, 5, 11, 13, 12}
)

Functions

func Compute

func Compute(combined int64) (int64, string)

func Encode62

func Encode62(number int64) []int64

函数区

Types

type Manager

type Manager struct {
}

type ShortUrl

type ShortUrl struct {
	BaseUrl    string `json:"base_url"`
	BaseNumber int    `json:"base_number"`
	Orders     []int  `json:"fixed_order"`
}

struct结构体区

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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