The go/parse package is not really going to help much, as Go is a compiled language. What you are wanting is something akin to a scripting language, something with an 'eval' type function. While it is just barely feasible that you could accomplish something directly with Go using on-the-fly compilation, dynamic object loading, and plugins, it is going to be a lot of work and not likely to be a comfortable fit.
My recommendation would be to look at simply embedding a script engine in your Go program. There are several Lua implementations for Go, for example. Have a look at http://awesome-go.com/#embeddable-scripting-languages and see if one of them might work for your situation. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.