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

relax types for Bind and Render funcs #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

willnorris
Copy link

This relaxes the Bind and Render to accept any type as a payload. If those types implement the Binder or Renderer interfaces, then the relevant method on the type is called. Sometimes the default Bind or Render behavior is sufficient, and I don't need any additional custom handling.

It looks like the Bind method was updated in #38 but that PR was immediately closed, but I'm not sure why.

This relaxes the Bind and Render to accept any type as a payload.  If
those types implement the Binder or Renderer interfaces, then the
relevant method on the type is called.  Sometimes the default Bind or
Render behavior is sufficient, and I don't need any additional custom
handling. Return early if payload value is nil.

Signed-off-by: Will Norris <will@tailscale.com>
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

Successfully merging this pull request may close these issues.

None yet

1 participant