From 77269babd317dbcba14a6f15099d2dcd6879637b Mon Sep 17 00:00:00 2001 From: eric <1048315650@qq.com> Date: Wed, 20 Apr 2022 18:04:31 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=8A=B6=E6=80=81=E6=9C=BA[statemachine])?= =?UTF-8?q?:=20=E7=8A=B6=E6=80=81=E6=9C=BAV3.1.2=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- state_machine/status.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/state_machine/status.go b/state_machine/status.go index fd0044e..5687abf 100644 --- a/state_machine/status.go +++ b/state_machine/status.go @@ -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)} }