Adding functional command pattern for go, based on Functional Programming with Scala and Clojure command example