1
0
mirror of https://github.com/taigrr/pastebin synced 2026-04-08 17:01:24 -07:00
Commit Graph

7 Commits

Author SHA1 Message Date
25f66bb589 feat: modernize codebase and complete API surface
- Update module path from prologic/pastebin to taigrr/pastebin
- Replace go.rice with stdlib embed for templates and static assets
- Replace httprouter with stdlib net/http ServeMux (Go 1.22+)
- Replace namsral/flag with cobra + fang for CLI argument parsing
- Fix inverted TLS insecure logic in client (was negating the flag)
- Close HTTP response body in client
- Use base64 URLEncoding instead of StdEncoding for paste IDs
- Add comprehensive handler tests for all endpoints
- Add client package tests
- Add utils tests for RandomString
- Remove templates.go (replaced by embed)
- Remove unused dependencies (go-metrics, stats, logger, httprouter, go.rice)
2026-03-09 05:44:08 +00:00
fabc69c1f7 update go deps 2022-06-13 02:25:25 -07:00
12afabdad2 Enables returning url for "Accept: text/plain" (#14)
* Update dependencies and go compile target version

* Adds deletion support to the server

* Add form around delete button

* Add support for returning the url in curl

Co-authored-by: James Mills <prologic@shortcircuit.net.au>
2021-04-20 23:22:10 +10:00
5ade7a0642 Fix pb utility (#16)
* Update dependencies and go compile target version

* Adds deletion support to the server

* Add form around delete button

* Add support for returning the url in curl

* remove -config option for now

* Upload as form value instead of file

* remove dependencies from go mod

* update to README re: new curl usage
2021-04-20 23:20:39 +10:00
1c454dc629 Update dependencies and go compile target version (#10) 2021-04-13 12:45:44 +10:00
James Mills
648e899e9f Add Drone CI config 2019-07-11 22:26:21 +10:00
James Mills
5cab47c0e5 Switch to Go11Modules 2019-07-11 22:11:33 +10:00