From 8baf937ecf1ff1f12982ff652d79672b80517a33 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Thu, 14 Aug 2014 15:55:39 -0400 Subject: [PATCH] tweaks and fmt --- README.md | 1 + example_loader.go | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 56cddfb..7c8e94a 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ bittorrent related things ## ./bencode/ fork from code.google.com/p/bencode-go +with a few changes ## ./torrent/ diff --git a/example_loader.go b/example_loader.go index bc54cee..2ef1708 100644 --- a/example_loader.go +++ b/example_loader.go @@ -28,14 +28,14 @@ func main() { continue } - buf, err := ioutil.ReadAll(fh) + buf, err := ioutil.ReadAll(fh) if err != nil { fmt.Fprintf(os.Stderr, "%s\n", err) continue } fh.Close() - tf := torrent.File{} + tf := torrent.File{} err = bencode.Unmarshal(buf, &tf) if err != nil { fmt.Fprintf(os.Stderr, "%s\n", err) @@ -54,7 +54,7 @@ func main() { if err != nil { fmt.Fprintf(os.Stderr, "%s\n", err) } - _, err = fhOutput.Write(buf) + _, err = fhOutput.Write(buf) if err != nil { fmt.Fprintf(os.Stderr, "%s\n", err) }