A program written in Go that forwards paths to other URLs (similar to Bitly)
- First, clone the repository to your local machine:
$ git clone https://github.com/DreamLineLove/URLShortener.git
- Run the binary or build it yourself (Go toolchain required):
// The following each runs the binary with default flags
// Run the one for your operating system
$ ./bin/apple-silicon-mac
$ ./bin/intel-mac
$ ./bin/windows
$ ./bin/linux
// Or build the binary yourself
$ go build .- By default -path is "redirect.yml".
- However, you can set the flags anyway you like:
// The data source is set as "mydata.json" from the same directory
// It is run on a Linux machine
$ ./bin/linux -path mydata.json- Both ".json" and ".yml" file extensions are supported.