Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 588 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 588 Bytes

pastebin

Simple < 150 line pastebin in Go. Made for local labs.
The IDs generated are two word combos, hyphen separated. The words are four or less characters for easy remembering and typing into another computer.
Pastes are set to expire after 2 minutes.

Requires Go version 1.22 for new ServeMux /{id} routing

Usage

Create:

curl localhost:4242 -d "your paste content"
wack-knot

Get:

curl localhost:4242/wack-knot
your paste content

TODO

  • Refactor to not use gorilla/mux, light weight as possible.
  • Add options for custom expire times.