DEV Community

Discussion on: What is the io.Reader in Go?

Collapse
 
pchawandi profile image
Prabhu Chawandi

Thank you! One point, JSON struct tags are not required, if we don't specify the tags GO will create JSON field names which are same as the struct field names. In the example, JSON field names and struct field names are the same, we can vomit the struct tags.