shorturl

package module
v0.0.0-...-4ce6403 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: MIT Imports: 5 Imported by: 0

README

shorturl

Url shortener written in Golang, create custom shorturl by passing custom shortids

Install

go get github.com/amljs/shorturl

Usage

Default shorturls
url, err := shorturl.CreateShortURL(longurl, baseurl)
Custom shorturls
url, err := shorturl.CreateShortURL(longurl, baseurl, shortid)

License

The MIT License (MIT). Please see License File for more information.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateShortURL

func CreateShortURL(params ...interface{}) (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