We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The current approach of fsm is to use string to represent stages:
fsm/examples/simple.go
Lines 14 to 19 in e668a85
which is kind of error prone. These strings should better be replace with enum values instead, to
Like this:
type myFSM int const ( Init myFSM = iota Open Progress Close = Stop )
For further details, check out https://pkg.go.dev/golang.org/x/tools/cmd/stringer
Please consider.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The current approach of fsm is to use string to represent stages:
fsm/examples/simple.go
Lines 14 to 19 in e668a85
which is kind of error prone. These strings should better be replace with enum values instead, to
Like this:
For further details, check out https://pkg.go.dev/golang.org/x/tools/cmd/stringer
Please consider.
The text was updated successfully, but these errors were encountered: