Is it possible to have two structs both declared in each other, something
like this

type human struct {
        name string
        age int
        address Address
}

type Address struct {
        country, city string
        postalCode uint
        human
}

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAK54eNwj0VciYNSXna2n%2Bzn5CSQSm6rJpdR70ReeyGo_KU3KkA%40mail.gmail.com.

Reply via email to