package states
Import Path
/examples/repl/states (on go.dev)
Dependency Relation
imports 2 packages, and imported by 0 packages
Package-Level Type Names (total 4)
ExampleGroupsDef contains all the state groups Example state machine.
Mutex states.S
var ExampleGroups
ExampleStatesDef contains all the states of the Example state machine.
Bar string
Baz string
Foo string
StatesBase *am.StatesBase
Exception is the only built-in state and mean a global error. All errors
have to [State.Require] the Exception state. If [Machine.PanicToErr] is
true, Exception will receive it.
inherit from rpc/StateSourceStatesDef
ErrOnClient indicates an error added on the Network Machine.
( ExampleStatesDef) Names() machine.S
( ExampleStatesDef) SetNames(names machine.S)
( ExampleStatesDef) SetStateGroups(groups map[string][]int, order []string)
( ExampleStatesDef) StateGroups() (map[string][]int, []string)
ExampleStatesDef : github.com/pancsta/asyncmachine-go/pkg/machine.States
var ExampleStates
S is a type alias for a list of state names.
State is a type alias for a state definition. See [am.State].
Package-Level Variables (total 6)
ExampleGroups contains all the state groups for the Example machine.
ExampleSchema represents all relations and properties of ExampleStates.
inherit from rpc/WorkerSchema
ExampleStates contains all the states for the Example machine.
Exception is a type alias for the Exception state.
Ready is a type alias for the Ready state.
Start is a type alias for the Start state.
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |