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

Essential cog concepts

Cogs (component objects in Go) are reusable components that are implemented in Go. The guiding philosophy behind cogs is to allow developers to create reusable components on the front-end in an idiomatic manner. Cogs are self-contained defined as their own Go package, which makes it easy to reuse and maintain them. Due to their self-contained nature, cogs can be used to create composable user interfaces.

Cogs follow a clear separation of concerns where the presentation layer of a cog is implemented using one or more Go templates, and the controller logic of the cog is implemented in one or more Go source files contained within a Go package. These Go source files may import Go packages from the standard library or third-party ...

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