Fix methodhandler example #91

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants

This is a possible fix for the methodhandler example.

I am not sure if this is the correct, idiomatic way to re-write the example, but it does work.

Owner

hoisie commented Apr 8, 2013

Yes, method handlers are currently broken. There was some change in a weekly branch a long time ago that broke them, and I haven't gotten around to fixing them. I want them back too :)

There's been a lot of work recently in 1.1 that will make this feature much nicer.

Owner

hoisie commented Apr 12, 2013

Thanks for the pull request. Method values are coming soon, and then method handlers should automatically work, without any special handler functions:

https://code.google.com/p/go/source/detail?r=a5c202b53a58

hoisie closed this Apr 12, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment