From 138707e5b8f2c03ed8237d45f4bb7530f40796d6 Mon Sep 17 00:00:00 2001 From: lordwelch Date: Mon, 6 Nov 2017 22:18:08 -0700 Subject: [PATCH] For some reason I decided to trim the extension --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index b669169..8c7a5ce 100644 --- a/main.go +++ b/main.go @@ -96,7 +96,7 @@ func main() { content []byte ) fmt.Println(file.Name()) - T, err = os.Open(strings.TrimSuffix(file.Name(), ext)) + T, err = os.Open(file.Name()) if err != nil { panic(err) }