Skip to content
Modern pastebin written in golang
Go HTML CSS Python Makefile
Branch: master
Clone or download
ewhal Merge pull request #11 from bryant1410/master
Fix broken headings in Markdown files
Latest commit 7d2e1e2 Apr 18, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets Fix up more minor issues Feb 5, 2017
.gitignore Initial commit of Pastebin fork Dec 19, 2016
.travis.yml Update travis ci Jul 15, 2016 Rename LICENSE file Jul 14, 2016
Pastebin Add accounts Feb 5, 2017 Fix broken Markdown headings Apr 18, 2017
config.json Add accounts Feb 5, 2017
database.sql Make highlighter script work with python3 and log a better error than Dec 19, 2016
pastebin.go fix up typos Feb 5, 2017

Golang Pastebin

Build Status GoDoc Go Report Card MIT licensed

Modern self-hosted pastebin service with a restful API.


Many Pastebin services exist but all are more complicated than they need to be. That is why I decided to write a pastebin service in golang.


Getting started


  • pygmentize
  • go
  • mariadb
pip install pygmentize
sudo yum install -y go mariadb-server mariadb


  • Please note this assumes you have Mariadb and Go already setup.
  • go get
  • make
  • mysql -u root -p
  • CREATE USER 'paste'@'localhost' IDENTIFIED BY 'password';
  • CREATE database paste;
  • GRANT ALL PRIVILEGES ON paste . * TO 'paste'@'localhost';
  • quit;
  • mysql -u paste -p paste < database.sql
  • cp config.example.json config.json
  • nano config.json
  • Configure port and database details


This project is licensed under the MIT License - see the file for details

You can’t perform that action at this time.