←back to thread

153 points yar-kravtsov | 1 comments | | HN request time: 0.321s | 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
lisbbb ◴[] No.45720841[source]
I'm guessing this only works on back end? If yes, then why not just write the back end in Go if you're so fond of the language? It's not like Golang lacks the libraries to do web stuff. Would it be like some shop that is all React, Angular, or some other?
replies(1): >>45721139 #
1. phpdave11 ◴[] No.45721139[source]
It compiles the Go code to WASM, so it can be used browser side.