As someone who knows both languages intimately (written more code in both of those languages than any others), I can't think of any two (non-toy) languages which are more diametrically opposed.
In a similar spirit, I have started an experimental go to c++ compiler. But it's not in a usable state at the moment (no gc, imports management is not finished, some syntax are still not managed) and the code is probably quite bad as I'm not used to program in go. (The repo is here: https://github.com/Rokhan/gocpp if anyone interested).
author here: yeah, as someone pointed out already, I could not find a way to make them async. PHP only has Fibers, and they are not sufficient for that.
I made some progress on a similar transpiler some years ago https://git.ivysaur.me/code.ivysaur.me/php2go but never really finished. I still have the use case. Do you know if there's any production quality transpiler?
Today you would probably involve an LLM somehow, but it's hard to trust the result.
In the 70's there was a significant trend of translating programming languages to French - for example LSE, Pascal, Cobol, Algol... Didn't abide - we now take English for granted but reading code in my native is a strange sensation !
That's SQL with Spanish words. I think the parent meant something along the lines of: dame el nombre de cada cliente cuyo ciudad sea 'Granada' y que no tenga telefono. Anything more flowery will be hard to translate, though.
Maybe not exactly what you meant...but you are not alone in your dream. Here's what i learned of: "Pushup - page-oriented web framework for Go" [https://pushup.adhoc.dev/]
I should rephrase. Go is simple, but it cuts corners which can really over complicate simple things that other languages would handle more elegantly. Struct tags are a perfect example of missing language features that require a weird post-processing step to get dynamic typing working.
100go.co is a great website! I referred to it a lot when learning go and It's my go to (pun unintended) for anyone learning the language
This is deeply cursed and I love it.