4 ms·
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
by rashkov 10y 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.
- no1youknowz 10y agoThank 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.
- pstuart 10y agoWorth perusing this for thoughts about doing an FSM in go: https://talks.golang.org/2011/lex.slide#1 https://talks.golang.org/2011/lex.slide#1