Anonymous Struct

An anonymous structure is a structure that does not contain a name. It is useful when you want to create a one-time usable structure. You can create an anonymous structure using the following syntax:


variable_name := struct{
// fields
}{// field values}
                        
anonymous_struct.go