From 2e76f4c5b1fba70858c3451b8ca3b8dbab2197c5 Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Sun, 19 Jun 2016 17:37:53 +1000 Subject: [PATCH] Add how to --- main.go | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/main.go b/main.go index d4af7ea..840be39 100644 --- a/main.go +++ b/main.go @@ -20,14 +20,17 @@ import ( ) const ( - ADDRESS = "http://localhost:9900" - LENGTH = 6 - TEXT = "$ | 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 = "$ | curl -F 'p=<-' " + ADDRESS + "\n" + PASTEARGS + URLARGS + SOURCE + PORT = ":9900" + USERNAME = "" + PASS = "" + NAME = "" + DATABASE = USERNAME + ":" + PASS + "@/" + NAME + "?charset=utf8" ) type Response struct {