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 client side

Figure 5.2 depicts routing from the perspective of the client side in an Isomorphic Go application, implementing the single page application architecture.

In Figure 5.1, the client side played a trivial role in simply rendering the web page server response. Now, in addition to displaying the rendered web page, the client contains a request router, route handlers, and the application business logic inside of it.

We will use the isokit router from the isokit package to perform client-side routing. The client-side router works much in the same manner as the server-side router, except instead of evaluating an HTTP request, the router intercepts the click of a hyperlink defined on the web page and routes it to a particular ...

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