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
- encoding/json Recap
- encoding/xml
- encoding/csv
- gob and Binary Encoding