package main import ( "strings" "github.com/01-edu/z01" ) func main() { Lower := z01.RuneRange('a', 'z') Upper := z01.RuneRange('A', 'Z') letters := Lower + Upper + " " var arr []string for i := 0; i < 10; i++ { str := z01.RandStr(z01.RandIntBetween(2, 20), letters) arr = append(arr, str) } arr = append(arr, "") for _, v := range arr { z01.ChallengeMain("rotatevowels", strings.Fields(v)...) } z01.ChallengeMain("rotatevowels", "Hello World") z01.ChallengeMain("rotatevowels", "HEllO World", "problem solved") z01.ChallengeMain("rotatevowels", "str", "shh", "psst") z01.ChallengeMain("rotatevowels", "happy thoughts", "good luck") z01.ChallengeMain("rotatevowels", "al's elEphAnt is overly underweight!") z01.ChallengeMain("rotatevowels", "aEi", "Ou") }