screenshot
I am initializing a struct from another package. But it says unknown field in struct literal.
Why can’t I initialize the struct as shown in screenshot?
I tried to initialize an empty struct also and then providing the field values, but of no use.
New contributor
Puran Dixit is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1