11-if/04-vowel-or-cons, Usage of strings.ContainsAny method as a new solution
This commit is contained in:
@ -26,6 +26,8 @@ package main
|
|||||||
// Use strings.IndexAny function to detect the vowels.
|
// Use strings.IndexAny function to detect the vowels.
|
||||||
// Search on Google for: golang pkg strings IndexAny
|
// Search on Google for: golang pkg strings IndexAny
|
||||||
//
|
//
|
||||||
|
// Furthermore, you can also use strings.ContainsAny. Check out: https://golang.org/pkg/strings/#ContainsAny
|
||||||
|
//
|
||||||
// EXPECTED OUTPUT
|
// EXPECTED OUTPUT
|
||||||
// go run main.go
|
// go run main.go
|
||||||
// Give me a letter
|
// Give me a letter
|
||||||
|
Reference in New Issue
Block a user