liveBook · Manning

Encoding

As explained in Go in Practice, Second Edition

Encoding is the transformation of information into a representation defined by a scheme for storage, processing, transmission, or interpretation.

When systems exchange data, encoding and format determine how information can be interpreted. Go handles data internally as UTF-8 and provides packages and interfaces for translating formats such as JSON and XML into local structs, working with Base64 data, and adding or switching encoding support. section 1.2.2

How Go in Practice, Second Edition covers it

How deep it goes
Names UTF-8, Base64, JSON, and XML cases and points to packages and interfaces without demonstrating implementation.
Examples
Uses Base64 data and JSON or XML translated into local objects or structs as examples.
What you can do after
Understand how Go packages and interfaces can translate JSON into structs, switch encodings, or add external support.
How it connects
Connects encoding with UTF-8, Base64, JSON, XML, Go structs, packages, and interfaces.

Also explained in

Compare how 9 books explain encoding →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Go in Practice, Second Edition. The section links point to the parts of the book it draws on.