shortener

package
v0.0.0-...-aa7acec Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2020 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Enabled once StartHTTP is run
	Enabled = false
)
View Source
var URL = ""

URL is the current URL

Functions

func GetExtension

func GetExtension(name string) string

func GetOpenPort

func GetOpenPort() (int, error)

GetOpenPort finds an open port

func Handler

func Handler(w http.ResponseWriter, r *http.Request)

func ShortenURL

func ShortenURL(targetURL string) string

func StartHTTP

func StartHTTP(ip string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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