PastebinGo /

Filename Size Date modified Message
data
static
templates
57 B
1.1 KB
264 B
738 B
2.7 KB
1.6 KB
1.3 KB
2.3 KB
2.5 KB
2.5 KB
870 B
2.3 KB
1.0 KB
864 B
1.0 KB

PastebinGo

Simple pastebin build with Go lang

Learning project.

Features

  • Adding pastes
  • Displaying archived pastes
  • Syntax highlighting (with highlight.js)
  • User accounts

Requests or bugs?

https://bitbucket.org/matrixik/pastebingo/issues

Building

In root folder:

go get -tags mysql .
go get .

or

go get code.google.com/p/go.crypto/scrypt
go get github.com/gorilla/pat
go get github.com/gorilla/schema
go get github.com/gorilla/sessions
go get thegoods.biz/httpbuf
go get github.com/mattn/go-sqlite3
go get github.com/ziutek/mymysql/godrv

Then for use with SQLite:

go build

or if you want MySql first update file config.go and then:

go build -tags mysql

Now run program and open http://127.0.0.1:8080/ in browser.

License

The source files are distributed under the Mozilla Public License, version 2.0, unless otherwise noted.
Please read the FAQ if you have further questions regarding the license.