modulepackage
3.0.2+incompatible
Repository: https://github.com/andviro/go-state.git
Documentation: pkg.go.dev
# README
Go-state
A simple helper library for programming robust state-oriented applications
Credits
It borrows the idea from internal state machine of Golang template
package.
To learn more, see the package sources and a blog entry.
Usage
See example_state_test.go to get an idea.
License
This code is released under MIT license.
# Type aliases
Func is a basic building block of state machine.
Hook is a function that's run when machine is about to enter certain state.
Middleware is a simple modifier for state function.