Source File
ss_tui.go
Belonging Package
/examples/tui/states
package statesimport (amss)// TuiStatesDef contains all the states of the Tui state-machine.type TuiStatesDef struct {*am.StatesBaseResized stringIncomingData string// inherit from BasicStatesDef*ss.BasicStatesDef}// TuiGroupsDef contains all the state groups Tui state-machine.type TuiGroupsDef struct {}// TuiSchema represents all relations and properties of TuiStates.var TuiSchema = SchemaMerge(// inherit from BasicSchemass.BasicSchema,am.Schema{ssT.Resized: {},ssT.IncomingData: {},})// EXPORTS AND GROUPSvar (ssT = am.NewStates(TuiStatesDef{})sgT = am.NewStateGroups(TuiGroupsDef{})// TuiStates contains all the states for the Tui state-machine.TuiStates = ssT// TuiGroups contains all the state groups for the Tui state-machine.TuiGroups = sgT)// NewTui creates a new Tui state-machine in the most basic form.func ( context.Context) *am.Machine {return am.New(, TuiSchema, nil)}
![]() |
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. |