From 1ed0b0b2017be6feea6ccdc1fde8887943a0ef60 Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Sat, 16 Sep 2017 17:08:18 +0200 Subject: [PATCH] Initial --- main.go | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 main.go diff --git a/main.go b/main.go new file mode 100644 index 0000000..2368528 --- /dev/null +++ b/main.go @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "os" +) + +func main() { + args := os.Args[1:] + if len(args) == 0 { + fmt.Println("No action specified") + return + } + + switch args[0] { + case "removesuffix": + fallthrough + case "rs": + suffix := args[1] + break + default: + fmt.Println("Invalid action specified") + return + } +}