Skip to content

Commit

Permalink
feat(状态机[statemachine]): 状态机V3.1.2版本
Browse files Browse the repository at this point in the history
  • Loading branch information
Ccheers committed Apr 20, 2022
1 parent 466d92b commit 77269ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions state_machine/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ type StateNode struct {
next map[uint]*StateNode
}

func (s *StateNode) String() string {
return s.desc
}

func NewStateNode(state uint, desc string) *StateNode {
return &StateNode{state: state, desc: desc, next: make(map[uint]*StateNode)}
}
Expand Down

0 comments on commit 77269ba

Please sign in to comment.