qmuntal / stateless

Go library for creating finite state machines
BSD 2-Clause "Simplified" License
942 stars 49 forks source link

add args to CanFire/CanFireCtx #24

Closed okhowang closed 3 years ago

qmuntal commented 3 years ago

This PR looks good, CanFire should have accepted args from the beginning.

The addition should be transparent to the current calls of CanFire as it is added using the spread operator.