package gorandomimport// Is letter vowel checkfunc ( rune) bool { = unicode.ToLower()switch {case == 'a', == 'e', == 'i', == 'u', == 'o':returntruedefault:returnfalse }}// Is letter Turkish vowel checkfunc ( rune) bool { = unicode.TurkishCase.ToLower()switch {case == 'a', == 'e', == 'ı', == 'i', == 'u', == 'ü', == 'o', == 'ö':returntruedefault:returnfalse }}// Count of vowel in a stringfunc ( string) int {var = 0for , := range {ifIsVowel() { += 1 } }return}// Count of Turkish vowel in a stringfunc ( string) int {var = 0for , := range {ifIsTurkishVowel() { += 1 } }return}
The pages are generated with Goldsv0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.