Neat! I have experimented with various ways to convert Go structs to/from TypeScript interfaces.
- https://github.com/danielgtaylor/huma then OpenAPI -> TS
- https://github.com/gzuidhof/tygo
- https://github.com/coder/guts
guts also does some AST stuff.
It seems like this project could help with this and then some.
Interesting I feel like I'd rather go the other way, write something in a language with nice syntax and features, then transpile to go
hey ! i like the idea but I don't get why not using WASM instead of transpiling ? (I get the "transpiled typescript might be more readable" argument, but it seems less bullet proof / prone to unexpected behavior)