hid

package module
v0.0.0-...-300f131 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHashID

func CreateHashID(salt string, alphabet string, minlength int) (h *(hashids.HashID), err error)

* CreateHashID

Types

type HidType

type HidType hashids.HashID

func CreateHID

func CreateHID(salt string, alphabet string, minlength int) (h *HidType, err error)

func (*HidType) Decode

func (h *HidType) Decode(str string) (i int, err error)

func (*HidType) DecodeInt64

func (h *HidType) DecodeInt64(str string) (i int64, err error)

func (*HidType) Encode

func (h *HidType) Encode(i int) (str string, err error)

* Encode

func (*HidType) EncodeInt64

func (h *HidType) EncodeInt64(i int64) (str string, err error)

Jump to

Keyboard shortcuts

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