type Address struct {
    City    string
    Country string
}

type User struct {
    Name    string
    Age     int
    Address // ترکیب Struct
}

func main() {
    user := User{
        Name: "حسین",
        Age:  35,
        Address: Address{
            City:    "تهران",
            Country: "ایران",
        },
    }
    fmt.Println(user.City) // تهران
}