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

The UX toolkit

The UX toolkit provides the functionality to implement cogs within the cog package, which can be installed using the following go get command:

$ go get -u github.com/uxtoolkit/cog

All cogs must implement the Cog interface:

type Cog interface {  Render() error  Start() error}

The Render method is responsible for rendering the cog on the web page. If there are any errors in the rendering process, the method will return an error object.

The Start method is responsible for activating the cog. If the cog was not able to start, the method will return an error object.

The cog package contains two important exported variables, ReactivityEnabled and VDOMEnabled. Both of these exported variables are of type bool, and by default, they are ...

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