Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pankajkhairnar/GoShort
GoShort is a URL shortener written in Golang, BoltDB is used for in memory and persistent key/value storage and for routing it's using high performance HTTPRouter
https://github.com/pankajkhairnar/GoShort
Last synced: 13 days ago
JSON representation
GoShort is a URL shortener written in Golang, BoltDB is used for in memory and persistent key/value storage and for routing it's using high performance HTTPRouter
- Host: GitHub
- URL: https://github.com/pankajkhairnar/GoShort
- Owner: pankajkhairnar
- License: apache-2.0
- Created: 2016-06-06T16:45:34.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-04-28T18:18:24.000Z (over 4 years ago)
- Last Synced: 2024-08-02T11:16:12.729Z (4 months ago)
- Language: Go
- Homepage:
- Size: 2.03 MB
- Stars: 66
- Watchers: 2
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# goShort
GoShort is a URL shortener written in Golang and [BoltDB] for persistent key/value storage and for routing it's using high performent [HTTPRouter]### REST Endpoints
- [POST] - http://localhost:8080/create/ : It accepts POST form data with parameter "url" and returns json response with short URL
- [GET] - http://localhost:8080/{SHORT_CODE}/ : If SHORT_CODE is valid and found in db, request will be redirected to original long URL
- [GET] - http://localhost:8080/{SHORT_CODE}/json : If SHORT_CODE is valid and found in db the endpoint will return original url in json response### License
[Apache][HTTPRouter]:
[BoltDB]:
[Apache]: