oapi-codegen
oapi-codegen copied to clipboard
[Feature Request] Generate Go client for WebAssembly
In a recent requirement, I need to build a WebAssembly in Go to be consumed by frontend.
As part of the WebAssembly it needs to call OpenAPI at some backend server.
It'd be nice to generate a client in this scenario, i.e. OpenAPI operations are automatically defined as JavaScript function via
js.Global().Set("SomeOperationInOpenAPI", js.FuncOf(someFuncForTheOperation))
Thanks.