shortener

package
v0.0.0-...-ce4d8a1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(longUrl string, cache *gocache.Cache) (string, bool)

func Load

func Load(path string) (c *gocache.Cache, err error)

func Print

func Print(c *gocache.Cache) string

func Redirect

func Redirect(key string, c *gocache.Cache) (bool, string, error)

func Save

func Save(path string, c *gocache.Cache, mux sync.Mutex) error

Types

type Cat

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

Jump to

Keyboard shortcuts

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