/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.196s
|
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.
b_e_n_t_o_n
◴[
27 Oct 25 08:19 UTC
]
No.
45718495
[source]
▶
>>45717724 (OP)
#
Hah. Back in the day I wrote a plugin to convert Lua files into a module that ran via one of the JS lua vms. Good fun.
ID:
GO
↑