Closed RelicOfTesla closed 1 year ago
The issue is that "%p"
is equal for f1
and f2
.
You can work around this issue by using new
:
f1 := makeFn(11)
l := new(event.ListenerFunc)
*l = f1
evBus.On("evt1", l)
f2 := makeFn(22)
evBus.On("evt1", f2)