Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nil as a pointer triggers error #1

Open
mlitanin opened this issue Feb 17, 2019 · 3 comments
Open

nil as a pointer triggers error #1

mlitanin opened this issue Feb 17, 2019 · 3 comments

Comments

@mlitanin
Copy link

If the goevent processor function defined with pointer in params, e.g.:
func ProcessEvent(obj * MyStruct)

and i trigger it with nil:
eventTable.Trigger(myEventTitle, nil)

it ends up with error:
expected *MyStruct, but got %!s(<nil>)

@pocke
Copy link
Owner

pocke commented Feb 18, 2019

Thank you for your reporting.
I don't maintain this repository, so I do not have any plan to fix any issue, sorry.

@mlitanin
Copy link
Author

mlitanin commented Feb 18, 2019 via email

@pocke
Copy link
Owner

pocke commented Feb 18, 2019

Sorry, I don't know maintained packages.
But I guess you can find a package from awesome-go. https://github.com/avelino/awesome-go#messaging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants