/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
Show HN: Write Go code in JavaScript files
(www.npmjs.com)
153 points
yar-kravtsov
| 1 comments |
27 Oct 25 05:36 UTC
|
HN request time: 0.197s
|
source
I built a Vite plugin that lets you write Go code directly in .js files using a "use golang" directive. It compiles to WebAssembly automatically.
1.
ivanjermakov
◴[
27 Oct 25 14:56 UTC
]
No.
45721708
[source]
▶
>>45717724 (OP)
#
I would rather instantiate wasm module myself and have a build step to compile .go file. This way both JS and Go tooling would work.
ID:
GO
↑