Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumGoreflection basicsSingle-choice MCQ

When iterating struct fields with reflection to read a tag like `json:"name"`, which call gives you the parsed tag value, and what limitation applies to the fields you can read?

t := reflect.TypeOf(s) f := t.Field(0) tag := f.Tag.Get("json")