URL Shortener
URL shortener coded using Golang
- Golang
- First, the Go module needs to be installed.
go mod init urlshortener
go get github.com/gorilla/mux
- Then, the project can be run via terminal/cmd.
go build url_shortener.go
main
or
go run url_shortener.go
- After the localhost server is started, we can shorten the URL we want to shorten via terminal/cmd with the following code:
curl -X POST -d "url=link" http://localhost:8080/shorten
- Finally, we can copy the URL created on the terminal/cmd screen and use it through the web browser.
- The project is a simple CLI based URL shortening application.
If you have suggestions and recommendations, please contact me.
I would appreciate your support to make the project more modular.