Hi! This is my code:
type Dog struct {
Name string json:"name"
Year_old float32 json:"year_old"
Description []string json:"description"
}
type Dogs struct {
Dogs []Dog json:"Dogs"
}
func GetMessage(descriptions …[]string) (descModify string){
//here i need received all descriptions from all objects Dog.Description
}
The questions is how send all []String Dog.Description to func GetMessage(descriptions …[]string). Always send the last object in my test!
Thank you!