Remove fmt

This commit is contained in:
Eliot Whalan 2016-06-11 11:26:12 +10:00
parent 6abd70061d
commit e197051c6e
1 changed files with 1 additions and 3 deletions

View File

@ -1,7 +1,6 @@
package main
import (
"fmt"
"github.com/dchest/uniuri"
"io"
"io/ioutil"
@ -57,11 +56,10 @@ func save(buf []byte) string {
func pasteHandler(w http.ResponseWriter, r *http.Request) {
switch r.Method {
case "GET":
fmt.Fprintf(w, text)
io.WriteString(w, text)
case "POST":
buf, _ := ioutil.ReadAll(r.Body)
io.WriteString(w, address+save(buf)+"\n")
case "DELETE":
// Remove the record.
}