Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/andrioid/statesman. xstate inspired schema compatible statechart library for Go
Something went wrong. Try again.
12345678910111213141516{ "$schema": "../../schema/machineSchema.json", "id": "simple", "initial": "giving", "states": { "giving": { "on": { "SPIN": { "actions": [{ "type": "spinGiving" }] } }, "always": { "target": "taking", "guard": { "type": "payingTooMuch" } } }, "taking": { "on": { "SPIN": { "actions": [{ "type": "spinTaking" }] } }, "always": { "target": "giving", "guard": { "type": "payingTooLittle" } } } }}