shorturl

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 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 Options

type Options struct {
	Alphabet  string
	BlockSize uint
}

type UrlEncoder

type UrlEncoder struct {
	// contains filtered or unexported fields
}

func NewURLEncoder

func NewURLEncoder(opt *Options) *UrlEncoder

func (*UrlEncoder) DecodeURL

func (encoder *UrlEncoder) DecodeURL(n string) uint64

func (*UrlEncoder) EncodeURL

func (encoder *UrlEncoder) EncodeURL(n uint64) string

Jump to

Keyboard shortcuts

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