/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.001s
|
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.
Show context
nsonha
◴[
27 Oct 25 07:58 UTC
]
No.
45718394
[source]
▶
>>45717724 (OP)
#
seems like an unintuitive idea that could have only come from someone infected by react/vercel. The natural way that most would think about this is just write go in a go file and have an import attribute or macro
replies(2):
>>45718428
#
>>45718562
#
1.
iamsaitam
◴[
27 Oct 25 08:31 UTC
]
No.
45718562
[source]
▶
>>45718394
#
Are there vaccines for these infected? I hope we can stop the spread /s
ID:
GO
↑