Skip to content
This repository has been archived by the owner on Sep 11, 2019. It is now read-only.

More modular command lookup #6

Open
captdeaf opened this issue Jun 6, 2014 · 0 comments
Open

More modular command lookup #6

captdeaf opened this issue Jun 6, 2014 · 0 comments
Assignees

Comments

@captdeaf
Copy link
Contributor

captdeaf commented Jun 6, 2014

Right now, command lookup is just a series of if (command == "..."), etc.

Create a directory containing multiple .go files that will do the actual handling of the commands, to make it more modular, and replace the if (...) checks with a map[string]:func(...) or similar, as you prefer.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants