https://github.com/datek/fsm
Dead simple finite state machine in golang
https://github.com/datek/fsm
finite-state-machine fsm go
Last synced: about 1 year ago
JSON representation
Dead simple finite state machine in golang
- Host: GitHub
- URL: https://github.com/datek/fsm
- Owner: DAtek
- License: mit
- Created: 2024-10-22T08:48:02.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-10-22T09:09:46.000Z (over 1 year ago)
- Last Synced: 2025-02-09T09:29:19.015Z (over 1 year ago)
- Topics: finite-state-machine, fsm, go
- Language: Go
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://codecov.io/gh/DAtek/fsm) [](https://goreportcard.com/report/github.com/DAtek/fsm)
# FSM
A dead simple Finite State Machine in Golang.
## Why?
I looked at a couple of other libs on GitHub, but all of them were more complicated. Events, sources, destinations, callbacks, background context, whatever... I don't need those.
A finite state machine can be defined only with _states_, if we assign each state a single _transition_, which returns the next state.
## Usage
Look at the tests.