looplab / fsm

Finite State Machine for Go
Apache License 2.0
2.86k stars 312 forks source link

Why fsm code not update to the latest version #91

Open CmderQ opened 2 years ago

CmderQ commented 2 years ago

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

GuessWhoSamFoo commented 2 years ago

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.

maxekman commented 2 years ago

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

xujinguang commented 2 years ago

need release a new version