From ff1db800235f995cad8c3ef69a46e8e59aae7f0e Mon Sep 17 00:00:00 2001 From: Elliott Pardee Date: Sun, 7 Jun 2015 04:06:48 -0400 Subject: [PATCH] fixing filename, and a file not getting deleted --- bin.go | 27 --------------------------- go/{bin.go => typeprint.go} | 0 2 files changed, 27 deletions(-) delete mode 100644 bin.go rename go/{bin.go => typeprint.go} (100%) diff --git a/bin.go b/bin.go deleted file mode 100644 index 1bdf78d..0000000 --- a/bin.go +++ /dev/null @@ -1,27 +0,0 @@ -package main - -import ( - "os" - "io/ioutil" - "fmt" -) - -func processFile(filename string) { - file, err := ioutil.ReadFile(filename) - - if err != nil { - panic(err) - } - - typeprint(string(file)) -} - -func main() { - args := os.Args[1:] - - if len(args) == 1 { - processFile(args[0]) - } else { - fmt.Println("needs a file to process") - } -} diff --git a/go/bin.go b/go/typeprint.go similarity index 100% rename from go/bin.go rename to go/typeprint.go