shortener

package
v0.0.0-...-9e4b263 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MapHash

type MapHash struct{}

func NewMapHash

func NewMapHash() *MapHash

func (*MapHash) Shorten

func (mh *MapHash) Shorten(long string) string

type Shortener

type Shortener interface {
	// result should be reasonably short
	// collisions should be unlikely
	Shorten(string) string
}

Jump to

Keyboard shortcuts

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