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.
Comments
hshdhdhehd•42m ago
Like it. Especially the how to use it and when to use it guidance.
nsonha•30m ago
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
yar-kravtsov•22m ago
Fair take! Though, this was literally built as a joke in response to @ibuildthecloud's tweet. Sometimes the dumbest ideas are the most fun to prototype.
hshdhdhehd•42m ago