...

/

Data Transport through gob

Data Transport through gob

This lesson discusses specifically the binary type of data and how Go uses the binary type to transfer data using the gob package.

We'll cover the following...

What is gob? #

The gob is Go’s format for serializing and deserializing program data in binary format. It is found in the encoding package. Data in this format is called a gob (short for Go binary format). It is similar to Python’s pickle or Java’s Serialization. It is typically used in transporting arguments and results of remote procedure calls (RPCs) (see the rpc package Chapter 13). More generally, it used for data transport between applications and machines. In what way is it different from JSON or XML? The gob was tailored explicitly for working in an environment that is entirely in Go, for example, communicating between two servers written in Go.

svg viewer

This package works with the language in a way that an externally-defined, language-independent ...