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

Transmitting gob encoded data

The encoding/gob package provides us with the functionality to manage streams of gobs, which are binary values exchanged between an encoder and a decoder. You use the encoder to encode a value into gob encoded data and you use the decoder to decode gob encoded data.

With Go on the server side and on the client-side, we have created a Go-specific environment, as shown in Figure 3.18This is an ideal environment to use the encoding/gob package, as a means for data exchange between the client and the server:

Figure 3.18: A Go-specific environment

The data that we will be transmitting consists of the cars slice. ...

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