From df50f8add60c7dda9b8090f8f2120301a720227c Mon Sep 17 00:00:00 2001 From: MaurĂ­cio Antunes Date: Wed, 28 Dec 2022 20:05:16 -0300 Subject: refactor: use underscore in names because of stds --- .../anonymous-functions3/main.go | 35 ---------------------- 1 file changed, 35 deletions(-) delete mode 100644 exercises/anonymous-functions/anonymous-functions3/main.go (limited to 'exercises/anonymous-functions/anonymous-functions3/main.go') diff --git a/exercises/anonymous-functions/anonymous-functions3/main.go b/exercises/anonymous-functions/anonymous-functions3/main.go deleted file mode 100644 index d49c752..0000000 --- a/exercises/anonymous-functions/anonymous-functions3/main.go +++ /dev/null @@ -1,35 +0,0 @@ -// anonymous functions3 -// Make me compile! - -// I AM NOT DONE -package main - -import "fmt" - -func updateStatus() func() string { - var index int - orderStatus := map[int]string{ - 1: "TO DO", - 2: "DOING", - 3: "DONE", - } - - return func() string { - index++ - return "What should I return?" - } -} - -func main() { - anonymous_func := updateStatus() - var status string - - status = anonymous_func() - status = anonymous_func() - - if status == "DONE" { - fmt.Println("Good Job!") - } else { - panic("To complete the challenge the status must be DONE") - } -} -- cgit v1.2.3-70-g09d2