Skip to content

jeremy-clerc/gopaste

Repository files navigation

Gopaste

Build Status

Some sort of pastebin like, very very simple, does not require any database, pastes are written to the filesystem, syntax highliting is done with SyntaxHighlighter 3.

Paste it! Share it! View it!

Features

  • Syntax Highliting
  • Choose expiration time between 1hour to 1week
  • Paste size limit is 1MB
  • Url is dynamic, it uses the one you are accessing

Run

Developped using go1.3 other versions may or may not work.

git clone https://github.com/jeremy-clerc/gopaste.git
cd gopaste
go run

By default it listen on port 8080

Clean expired pastes

Use maintenance/remove_expired.pl in cron job

Default expiration is 1hour, max expiration is 1 week

Todo

  • Add more test
  • Add password protection
  • Create configuration file or cmd line arguments
  • Create perl syntax highlighter for http://prismjs.com/ and migrate to prismjs

About

Sort of pastebin like written in GO

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published