commit 990e0dd50a837f71bbbe835031afe8e8b5645c5e Author: Brian Buller Date: Thu Aug 31 10:35:41 2017 -0500 Initial Commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3821b45 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Ignore the binary +emt diff --git a/main.go b/main.go new file mode 100644 index 0000000..74bc2c0 --- /dev/null +++ b/main.go @@ -0,0 +1,45 @@ +package main + +import ( + "fmt" + "os" +) + +var emoticons map[string]string + +func main() { + initEmoticons() + // We default to "shrug" + emt := "¯\\_(ツ)_/¯" + if len(os.Args) > 1 { + which := os.Args[1] + fmt.Println(which) + if which == "help" { + for k, v := range emoticons { + fmt.Println(k, v) + } + os.Exit(0) + } else { + if i, ok := emoticons[which]; ok { + emt = i + } + } + } + fmt.Println(emt) +} + +func initEmoticons() { + emoticons = make(map[string]string) + emoticons["bat"] = "~°·_·°~" + emoticons["bomb"] = "●~*" + emoticons["fish"] = ">°)))彡" + emoticons["flip"] = "(╯°□°)╯︵ ┻━┻" + emoticons["lenny"] = "( ͡° ͜ʖ ͡°)" + emoticons["octopus"] = "<コ:彡" + emoticons["shrug"] = "¯\\_(ツ)_/¯" + emoticons["smirk"] = "( ͡° ͜ʖ ͡°)" + emoticons["snake"] = "~>°)~~~" + emoticons["squid"] = "C:.ミ" + emoticons["star"] = "☆彡" + emoticons["tadpole"] = "(°°)~" +}