util.go 157 B

1234567891011
  1. package util
  2. import (
  3. "unicode"
  4. "unicode/utf8"
  5. )
  6. func IsExported(name string) bool {
  7. w, _ := utf8.DecodeRuneInString(name)
  8. return unicode.IsUpper(w)
  9. }