Hacker News new | ask | show | jobs
by rashkov 3412 days ago
I think that you're probably looking for a finite state machine. There are a number of libraries for this, so have a look around and pick one that looks good. I haven't used it myself but would love to hear about other people's experiences with them.
1 comments

Thank you for the "finite state machine" mention. I haven't seen this in my research so far. Will be adding this to the list to look up.
Worth perusing this for thoughts about doing an FSM in go: https://talks.golang.org/2011/lex.slide#1