Help us shape the future of Go! Take the 2026 Go Developer Survey

hid

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HID

type HID struct {
	HashID *hashids.HashID
}

func NewHID

func NewHID(key string, alphabet string) (x *HID, err error)

NewHID 创建 ID 加密

func (*HID) Decode

func (x *HID) Decode(value string) ([]int, error)

Decode 解密

func (*HID) Encode

func (x *HID) Encode(value []int) (string, error)

Encode 加密

Jump to

Keyboard shortcuts

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