Versions in this module Expand all Collapse all v1 v1.0.0 Mar 25, 2026 Changes in this version + type State struct + Final bool + Initial bool + Name string + type StateMachine struct + Protocol string + States []State + Transitions []Transition + func NewStateMachine(protocol string) *StateMachine + func (sm *StateMachine) AddState(name string, initial, final bool) + func (sm *StateMachine) AddTransition(from, to, event string) + func (sm *StateMachine) Coverage(observed []string) float64 + func (sm *StateMachine) ToDOT() string + func (sm *StateMachine) ToMermaid() string + type Transition struct + Condition string + Event string + From string + To string