func preparefortanning(preconsultativesession func() string, applysunscreen func(area string) bool, checkweather func() string) string { for _, area := range []string{"face", "arms", "legs"} { if !applysunscreen(area) { return "please reapply sunscreen to ensure your safety while tanning." } } weather := checkweather(); if weather == "sunny" { return "you are all set for a rejuvenating tanning session. just remember to leave out any unnecessary skincare products as advised in your preconsultative session, and give your skin a chance to resuscitate and embrace its natural glow, all while deciphering the prompts of the sun in disguise." } else { return "it looks like the weather isn't ideal for tanning today. let's reschedule to ensure you get the perfect glow safely." } }