trifsm is a code generator that will allow you to convert your mermaid diagrams into FSMs using looplab/fsm. Heavily inspired by abice/go-enum.
Install the package using go install
:
go install github.com/fira42073/trifsm@latest # latest (may be unstable)
# or
go install github.com/fira42073/trifsm@senpai # stable branch
This is a very young repo, so please refer to examples/ for now. More detailed documentation will follow (I guess).
This project uses ZeroVer