Created
March 16, 2022 14:03
-
-
Save matiasinsaurralde/ba0f03a84bb884100bd97b871a6313f8 to your computer and use it in GitHub Desktop.
workshop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
input := []int{} | |
for n := 0; n < 100; n++ { | |
input = append(input, n) | |
} | |
evilFizzBuzz(input) | |
} | |
func evilFizzBuzz(input []int) (output []int) { | |
for _, n := range input { | |
if n%3 == 0 && n%5 == 0 { | |
fmt.Println("fizz buzz") | |
} | |
} | |
return []int{} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment