fsm icon indicating copy to clipboard operation
fsm copied to clipboard

Why fsm code not update to the latest version

Open CmderQ opened this issue 2 years ago • 3 comments

Hi, I see you example :

fsm

When run the demo , it errors:

image

So I look the code , found the callback :

type Callback func(*Event)

But the latest version, the callback :

type Callback func(context.Context, *Event)

So I try to update the code to the latest version:

image

But it not work

CmderQ avatar Oct 02 '22 14:10 CmderQ

What version is referenced in go.mod? I'm going to guess it was v0.3.0 which was before the contexts were added.

go get -u github.com/looplab/fsm@3637340ce5e584a1ff164a85c477f31ad58bb33d or whichever preferred gitref should update the import.

GuessWhoSamFoo avatar Oct 08 '22 21:10 GuessWhoSamFoo

I will release a new version as soon as I’m able.

maxekman avatar Oct 09 '22 08:10 maxekman

need release a new version

xujinguang avatar Nov 04 '22 04:11 xujinguang