Versions in this module Expand all Collapse all v0 v0.0.1 Dec 10, 2019 Changes in this version + type StateTransitionTable struct + AllowInvalid bool + CurrentState interface{} + LogOnError bool + LogStates bool + LogTransitions bool + Name string + PanicOnError bool + ValidTransitions map[interface{}][]interface{} + func NewStateTransitionTable(initialState interface{}) *StateTransitionTable + func (s *StateTransitionTable) AddTransitions(states ...interface{}) bool + func (s *StateTransitionTable) Apply(newState interface{}, code func(stt *StateTransitionTable)) bool + func (s *StateTransitionTable) DumpTransitions(writer io.Writer) + func (s *StateTransitionTable) SetState(state interface{}) bool