tinyUrl

command module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

README

tinyUrl

A simple tinyUrl


Simple usage

Create URL

curl -d '{"url":"https://ya.ru"}' localhost/short && echo

URL created!
"{\"url\":\"https://ya.ru\",\"short\":\"kc6fc\"}"
Get URL

curl -L localhost/kc6fc

... Redirect to https://ya.ru
Default expiration
  • 48 hours

Docker usage

Compose

docker-compose up

To rebuild use this cmd

docker-compose -f docker-compose.yml up -d --no-deps --build

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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