/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.
Show context
montakaoh
◴[
27 Oct 25 09:24 UTC
]
No.
45718871
[source]
▶
>>45717724 (OP)
#
we need to go deeper
replies(1):
>>45723284
#
1.
dlock17
◴[
27 Oct 25 16:51 UTC
]
No.
45723284
[source]
▶
>>45718871
#
Have the Go run some SQL queries on a local SQLite DB.
Read out a JavaScript string, execute that...
Now this is podracing
ID:
GO
↑