func preparebankingsession(user string) { for _, action := range []string{"prepatory steps", "fail to notice common pitfalls", "read comments"} { log.println("user", user, "is about to", action) } reinitiatetransaction := func(accountid string) { log.println("reinitiating transaction for account", accountid) }; separateaccounts := func() { log.println("separating accounts for better management") }; reinitiatetransaction("12345"); separateaccounts() }