minimal no-fuss pastebin service clone in golang
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
KatolaZ 3a4c6d43e4 Small addition to the TODO list 8 years ago
.gitignore Added a README.md 8 years ago
README.md Small addition to the TODO list 8 years ago
index.html added index.html and pastes/ 8 years ago
main.go

README.md

binit -- minimal pastebin-like in 100 lines of golang

That's just it. Preliminary version of a minimal, no-fuss pastebin-like service in golang.

Needs a folder "pastes/" to exist on the same dir where the program is run from. At the moment, it binds on localhost:8000 and serves pastes in the format:

localhost:8000/abcdef1234567890

The unique ID of a paste is obtained from the SHA256 of the concatenation of title, time, and content. Rendering is minimal, but can be enhanced.

TODO

  • Check maximum paste length
  • Add a config file (hostname, port, pastedir)
  • Add a simple template system