From 48b4505e417c79245092b68857c852955e96ad44 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Thu, 29 Jun 2017 17:56:28 +0100 Subject: Added a README.md --- .gitignore | 1 + README.md | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 .gitignore create mode 100644 README.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..23a6cec --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/binit diff --git a/README.md b/README.md new file mode 100644 index 0000000..931c7a2 --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +## 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 + +* Add a config file (hostname, port, pastedir) +* Add a simple template system + + + -- cgit v1.2.3