O'Reilly logo

Isomorphic Go by Kamesh Balasubramanian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Routing on the server side

Figure 5.1 depicts an initial page load in an Isomorphic Go application, implementing the classic web application architecture. The client can either be a web browser or a bot (machine) that accesses the website by providing a URL. The URL contains the route that the client is accessing. For example, the /products route, will serve the products listing page. The /product-detail/swiss-army-knife route, will serve the product detail page for the swiss army knife product that is being sold on the website. The request router is responsible for mapping the route to its designated route handler function. The request router we will be using on the server side is the Gorilla Mux router, and it is available in the mux package: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required