How to use WordPress as frontend and Go as the Backend?

I want to create all the frontend using WordPress and its plugins, themes, etc… but only the frontend, the backend should be in Go, I was looking at the documentation here:
https://codex.wordpress.org/Developer_Documentation

But I got lost, where exactly do I start? Is there any tutorial out there that shows me what types of input I will receive in the backend (in Go) and how to deal with them?

It looks like you’re using PHP to set up a server, but unfortunately, PHP is a front-end and backend language.
After a cursory glance, you should need to write a plugin or something like that for the backend of the active request GO backend, such as the HTTP service that you request to GO to listen to.
If you use go as the backend, this is not a very good solution, and it seems that the docking cost seems to be a bit high?(Or maybe it’s just a conjecture that I haven’t actually been involved in this kind of operation.)

A tongue-in-cheek answer: Use FrankenPHP, a PHP app server written in Go. Mission accomplished. :stuck_out_tongue_winking_eye:

1 Like