Source File
ss_cli.go
Belonging Package
/examples/cli/states
// Package states contains a stateful schema-v2 for a CLI.// Bootstrapped with am-gen. Edit manually or re-gen & merge.package statesimport (amss.)// CliStatesDef contains all the states of the Cli state machine.type CliStatesDef struct {*am.StatesBaseFoo1 stringBar2 string// inherit from BasicStatesDef*ss.BasicStatesDef// inherit from DisposedStatesDef*ss.DisposedStatesDef}// CliGroupsDef contains all the state groups Cli state machine.type CliGroupsDef struct {}// CliSchema represents all relations and properties of CliStates.var CliSchema = SchemaMerge(// inherit from BasicStructss.BasicSchema,// inherit from DisposedStructss.DisposedSchema,am.Schema{ssV.Foo1: {Add: S{ssV.Start},After: S{ssV.Start},},ssV.Bar2: {Add: S{ssV.Start},After: S{ssV.Start},},})// EXPORTS AND GROUPSvar (ssV = am.NewStates(CliStatesDef{})sgV = am.NewStateGroups(CliGroupsDef{})// CliStates contains all the states for the Cli machine.CliStates = ssV// CliGroups contains all the state groups for the Cli machine.CliGroups = sgV)
![]() |
The pages are generated with Golds v0.8.2. (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. |