Add Huma to existing http router (Go 1.22) #459
Unanswered
kalinstaykov
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Now that Go 1.22 http router is a thing I can simply have
HundleFunclike that:And then define
getUserHandlerfor example with that signature:Can I hook Huma to that or do I always have to define
huma.Operationthat takes the Huma handler? That one has some expectations like requiring struct type:I'm not always comfortable of taking that in.
Beta Was this translation helpful? Give feedback.
All reactions