urls

package
v0.0.0-...-61649fe Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Shorten

func Shorten(longURL string) string

Shorten handles shortening a long (origial) URL. In production I would do much more research into the needs here (performance, should we encrypt instead of hash in case all our data was wiped, etc). Shorten returns the first 8 characters of an md5 hash of the longURL.

Types

This section is empty.

Jump to

Keyboard shortcuts

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