Structures and JSON

Let’s learn about structures and JSON records.

We'll cover the following

Coding example

Imagine that we have a Go structure that we want to convert into a JSON record without including any empty fields—the next widget illustrates how to perform that task with the use of omitempty:

Get hands-on with 1200+ tech skills courses.