|
|
@ -21,8 +21,9 @@ package main |
|
|
|
import "fmt" |
|
|
|
import "fmt" |
|
|
|
|
|
|
|
|
|
|
|
func main() { |
|
|
|
func main() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
res := []string{"student", "hello Iyan","bcdfgh", "wOrld", "","AAEO$o;jw"} |
|
|
|
|
|
|
|
|
|
|
|
res := VowelsIndex("hello Iyan") |
|
|
|
|
|
|
|
for _, i := range res { |
|
|
|
for _, i := range res { |
|
|
|
fmt.Println(i) |
|
|
|
fmt.Println(i) |
|
|
|
} |
|
|
|
} |
|
|
@ -31,11 +32,13 @@ func main() { |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
And its output : |
|
|
|
And its output : |
|
|
|
|
|
|
|
|
|
|
|
```console |
|
|
|
```console |
|
|
|
$ go run . |
|
|
|
$ go run . |
|
|
|
1 |
|
|
|
[2 4] |
|
|
|
4 |
|
|
|
[1 4 6 8] |
|
|
|
6 |
|
|
|
[] |
|
|
|
8 |
|
|
|
[1] |
|
|
|
|
|
|
|
[] |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|