From 248026b6bceb0e263b1e7b8f5571a56e8ac8c6dc Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Sun, 19 Jun 2016 17:55:03 +1000 Subject: [PATCH] Add deletion key reference --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 1add9d9..983dadc 100644 --- a/main.go +++ b/main.go @@ -22,10 +22,11 @@ import ( const ( ADDRESS = "http://localhost:9900" LENGTH = 6 + DELETE = ADDRESS + "/{PASTE}/{DELKEY}" 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 + TEXT = "$ | curl -F 'p=<-' " + ADDRESS + "\n" + PASTEARGS + URLARGS + DELETE + SOURCE PORT = ":9900" USERNAME = "" PASS = ""