Add how to

This commit is contained in:
Eliot Whalan 2016-06-19 17:37:53 +10:00
parent 3c35238103
commit 2e76f4c5b1
1 changed files with 11 additions and 8 deletions

19
main.go
View File

@ -20,14 +20,17 @@ import (
)
const (
ADDRESS = "http://localhost:9900"
LENGTH = 6
TEXT = "$ <command> | curl -F 'p=<-' " + ADDRESS + "\n"
PORT = ":9900"
USERNAME = ""
PASS = ""
NAME = ""
DATABASE = USERNAME + ":" + PASS + "@/" + NAME + "?charset=utf8"
ADDRESS = "http://localhost:9900"
LENGTH = 6
PASTEARGS = ADDRESS + "/p/{PASTE}/(python|language)\n"
URLARGS = ADDRESS + "save/XML|JSON\n"
SOURCE = "Source: https://github.com/ewhal/Pastebin\n"
TEXT = "$ <command> | curl -F 'p=<-' " + ADDRESS + "\n" + PASTEARGS + URLARGS + SOURCE
PORT = ":9900"
USERNAME = ""
PASS = ""
NAME = ""
DATABASE = USERNAME + ":" + PASS + "@/" + NAME + "?charset=utf8"
)
type Response struct {