I am confident in working with Go and have a lot of experience with coding it for my personal projects, but I have never publically and professionally used Go before to serve a website and I want some advice from some true experienced professionals.
My question is, if I am planning on professionally serving my websites with Go, where/when and how should I use Go?
Should I use Go to serve the foundation of my site, such as handling all http requests ("/"), including resources such as images?
If I am gathering information from a database, is it recommended to just use something such as PHP for a quick database select query, or should I serve it with go and the âtemplate/htmlâ package?
Is it also recommended to use a mix of PHP and Go, or if I am going with Go, should I ONLY use Go?
If I shouldnât be using go to serve all of my websiteâs content, should I use it for simple GET queries for my site to use with javascript or even PHP? (GET /golangscript?data=true
)
Sorry if this question is a little confusing in anyway, I tried my best to write my question as clear as possible