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

Missing a generic "Render" like unrolled/render #2

Open
hugows opened this issue Jul 12, 2017 · 1 comment
Open

Missing a generic "Render" like unrolled/render #2

hugows opened this issue Jul 12, 2017 · 1 comment

Comments

@hugows
Copy link

hugows commented Jul 12, 2017

Hi,
I wanted to use the package, due to Bind and already using chi (of course), but I missed an easier way to encode structs like I do with @unrolled/render:

render.JSON(w, http.StatusOK, data)

Could you explain why that is a bad idea (if it is) ?
Thanks for chi!

@zet4
Copy link

zet4 commented Aug 14, 2017

Issue invalid, go-chi/render has generic JSON function.

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