← Go Lesson 3

Lesson 3: Struct Tags, JSON & Protobuf

7 min read

1. Q1: What does json:"-" do?

2. Q2: With the struct below, what does json.Marshal output for App{Name: "test"}?

3. Q3: To properly omit a struct field with omitempty, you should: