I am building a pretty simple personal website and I want to do the whole thing in Go. I have seen some cool Beego builds that seem pretty intuitive but my one hangup is that I didn't see anything on beegos site about it supporting single page applications. I initially tried to use iris but I can't make css work with it even though it shows it in the docs. I also saw the weirdness with kateras the maintainer of iris and I don't want to support that.
Thanks
评论:
therealfakemoot:
justinisrael:What makes a Single Page Application is mostly the javascript. Javascript on the page sends a request to the server, receives data, and updates the page in-place. Beego seems to support routes and all the standard web server stuff. So the question is, can you design a template and accompanying javascript that will make a Single Page Application?
Beego will let you fire off HTTP requests to get data, so it's all what you can make happen in the browser.
I don't use beego, but I don't see why you couldn't achieve this with pretty much any of the web frameworks. It consists of you choosing some way to do the front end, which would be served at a given route such as "/". Then your front end would make calls to other end points from that same single page, such as "/api/..."
