create object of struct in 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"
}