create instance of struct in another struct golANG code example
Example: go create new instance of struct
type Person struct {
Name string
}
func main() {
var me Person
me.name = "mattalui"
}
type Person struct {
Name string
}
func main() {
var me Person
me.name = "mattalui"
}