Show HN: Go framework with builtin OpenAPI support
8 points by ck_one 1 year ago | 2 comments- ttymck 1 year agoThis looks really useful. I look forward to test driving it.
Just from the Readme, I have one question. It looks like it's necessary to register a hook to start serve the router. Is there a use case for _not_ registering that hook?
- danielgtaylor 1 year agoNot really. 99% of the time you would register the start hook, and it's a good idea to register a stop hook as well. Keep in mind the CLI is completely optional so if you already use the built-in option parsing or Cobra or something else you can keep using that.
I guess if for example you were just using Huma to generate OpenAPI from some Go code and dump that to the terminal or a file you might skip the start hook.
- danielgtaylor 1 year ago