You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can I hook Huma to that or do I always have to define huma.Operation that takes the Huma handler? That one has some expectations like requiring struct type:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Now that Go 1.22 http router is a thing I can simply have
HundleFunc
like that:And then define
getUserHandler
for example with that signature:Can I hook Huma to that or do I always have to define
huma.Operation
that 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