hash

package
v0.0.0-...-184715f Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hash

type Hash struct {
	*hashids.HashID
}

Hash is a wrapper over HashID

func New

func New(salt string, length int) *Hash

New returns a wrapper over HashID

func (*Hash) Encode

func (c *Hash) Encode(n int64) string

Encode returns encoded version of number

Jump to

Keyboard shortcuts

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