tinyUrl

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2025 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/api/v1/shortUrl && echo

URL created!
{"shortUrl":"http://localhost/Ch9Lgr9kzW"}

Get URL

curl -L http://localhost/Ch9Lgr9kzW

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

Docker usage

Compose

docker-compose up

To rebuild use this cmd

docker-compose -f docker-compose.yml up -d --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