Question : what is struct in golang
Answered by : harendra
A structure or struct in Golang is a user-defined type that allows to group/combine items of possibly different types into a single type. Any real-world entity which has some set of properties/fields can be represented as a struct.
Source : | Last Update : Tue, 21 Jun 22
Question : Structs in Golang
Answered by : harendra
type person struct { name string age int gender string
}
Source : https://gowithgolang.com/functions-method-structs-and-interfaces-in-golang/#Structs_in_Golang | Last Update : Wed, 13 Jul 22