Hacker News new | ask | show | jobs
by cookiengineer 970 days ago
Do you by any chance know whether there's something like a go library or converter/transpiler that allows you to reuse the structs from a backend on the client side?

Currently I always have a little redundancy in my projects when it comes to the JS HTTP client that calls the golang backend's API and I want to avoid that.

1 comments

Not that I am aware of. If there is one I’d try it out.

I usually just make the types by hand on TS client.

Maybe gpt :p