GoShorty

module
v0.0.0-...-244131f Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MIT

README

GoShorty

URL Shortener Application

Example Commands

These commands utilize the shorten.sh and resolve.sh scripts to interact with the URL shortener service.

Shorten URL

To shorten a URL, you can use the following command:

./scripts/shorten.sh --url "http://example.com" --short "exmpl" --exp "1h"

This will shorten the URL http://example.com with the custom short exmpl and an expiration time of 1 hour

Resolve URL

To resolve a shortened URL, you can use the following command:

./scripts/resolve.sh --short exmpl

This will resolve the shortened URL exmpl and return the original URL.

Directories

Path Synopsis
api
docs
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.
internal
pkg

Jump to

Keyboard shortcuts

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