title: check for vowels or numbers in a string using golang
body: <p>I want know a best way to check if some char is vowel, and find a pattern to know how check for numbers too, this is my first attempt...<a href="http://play.golang.org/p/wI8pYV3BqO" rel="nofollow">http://play.golang.org/p/wI8pYV3BqO</a></p>
  
  <pre><code>package main
  
  import "fmt"
  
  type groupChars []rune
  
  func isVowel(c rune) bool {
      vowels := groupChars{'a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U'}
      for _, value := range vowels {
          if value == c {
              return true
          }
      }
      return false
  }
  
  func main() {
      myString := "OLapOKA3EOR"
      t := 0
      for _, value := range myString {
          if isVowel(value) {
              fmt.Printf("%c is Vowel\n", value)
              t++
          }
      }
      fmt.Printf("%d Vowels.", t)
  
  }
  </code></pre>
  
  <p>Thanks</p>