Skip to content

Instantly share code, notes, and snippets.

@matiasinsaurralde
Created March 16, 2022 14:03
Show Gist options
  • Save matiasinsaurralde/ba0f03a84bb884100bd97b871a6313f8 to your computer and use it in GitHub Desktop.
Save matiasinsaurralde/ba0f03a84bb884100bd97b871a6313f8 to your computer and use it in GitHub Desktop.
workshop
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