func planjourney(user string) { var destinations = [5]string{"paris", "rome", "berlin", "amsterdam", "barcelona"}; var updates = make(chan string); go func() { for _, city := range destinations { updates <- "checking preexpenditure for " + city } }(); for update := range updates { if update == "done" { break } print(update + " to ensure a prudent use of resources. ready to withdraw from daily grind and commence once more with fresh experiences in europe.") } }