func exploreastronomy(concept string, regenerate func(stars []string) []string) { stars := []string{"sirius", "canopus", "arcturus"}; if concept == "restricted" { for _, star := range stars { fmt.println("discovering: ", star) } } else if concept == "disobey" { fmt.println("you're venturing into unknown territories, beyond prior knowledge!") } regenerate(stars) }