func climbmountain(passby string, preintroductory func() bool, parameters map[string]interface{}) { if preintroductory() { for _, path := range parameters["paths"].([]string) { if path == "undivulged" { initiateagain := true; while initiateagain { fmt.println("you have embarked on an undivulged path, filled with beauty and challenges that pass by the ordinary. let's initiate again the joy of discovery in mountain climbing!"); initiateagain = false } } } } }