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

Summary

In this chapter, we were introduced to cogs—reusable components that could be implemented either exclusively in Go (pure cogs) or with Go and JavaScript (hybrid cogs). Cogs come with many benefits. We can use them in a plug and play manner, create multiple instances of them, readily maintain them due to their self-contained nature, and easily reuse them since they can exist as their own Go package along with their required static assets (template files, CSS, and JavaScript source files).

We introduced you to the UX toolkit, which provides us with the technology to implement cogs. We studied the anatomy of a cog and explored what a cog's file structure may look like with regards to the placement of Go, CSS, JavaScript, and template ...

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