How to combine PHP & Golang in same repl instance?

On 23 Feb 2022, Replit blog announced that, All New Repls are Powered By Nix, and Nix can combine language environments. I have 2 questions :

  • What is the code/command for running PHP repl and Golang repl in the same repl instance (starts with index.php) ?
  • what is the code/command for running Python repl and Golang repl in the same repl instance (starts with main.py) ?

For PHP (webserver) and Go, fork

https://replit.com/@QwertyQwerty88/PHP-Webserver-Go?v=1

For Py and Go, fork

https://replit.com/@QwertyQwerty88/Python-Go?v=1

But why do you want them in the same Repl?

Thanks, I will try it out.
I want to write code for server to server communication.
Instead of deploying a server for testing from another repl, I can can get 2 servers in the same repl for free, if Nix is truely an alternative for Docker.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.