0Pricing
Go Academy · Lesson

gob and Binary Encoding

Encode Go values.

What Is gob

encoding/gob is a Go-specific binary format for serializing Go values. It is compact and fast, ideal for Go-to-Go communication and on-disk storage.

gob vs JSON

JSON is text, human-readable, and cross-language. gob is binary, Go-only, but more compact and faster to encode. Use gob when both ends are Go programs.

All lessons in this course

  1. encoding/json Recap
  2. encoding/xml
  3. encoding/csv
  4. gob and Binary Encoding
← Back to Go Academy