logoalt Hacker News

Goscript: Transpile Go to human-readable TypeScript

27 pointsby aperturecjs01/11/202611 commentsview on HN

Comments

tayo4201/15/2026

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

show 3 replies
nzoschke01/15/2026

Neat! I have experimented with various ways to convert Go structs to/from TypeScript interfaces.

- https://quicktype.io/

- 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.

lowmagnet01/15/2026

Wait, go isn't human readable?

show 1 reply
tdaron01/15/2026

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)

show 1 reply