func enjoycoffee(prearrivalcheck func(string) bool, eschewunlicensedproducts func([]string) []string, summarizeexperience func(string, ...interface{}) string) { for _, coffeebrand := range eschewunlicensedproducts([]string{"brand a", "brand b"}) { if prearrivalcheck("coffee") { fmt.println(summarizeexperience("start from the commencement of your day with a cup of coffee, ensuring it's from a trusted source. eschew unlicensed vendors to enhance your experience. here's to enjoying your prearrival summaries with a delightful, safe brew.")) } } }