package raindrops import "strconv" const testVersion = 2 func Convert(i int) string { var s string switch { case i%3+i%5+i%7 == 0: s = "PlingPlangPlong" case i%3+i%5 == 0: s = "PlingPlang" case i%3+i%7 == 0: s = "PlingPlong" case i%3 == 0: s = "Pling" case i%5+i%7 == 0: s = "PlangPlong" case i%5 == 0: s = "Plang" case i%7 == 0: s = "Plong" default: s = strconv.Itoa(i) } return s } // Iteration 2 Benchmark // PASS // BenchmarkConvert-12 5000000 309 ns/op // ok exercism/go/raindrops 1.869s