12 lines
157 B
Go
12 lines
157 B
Go
|
package util
|
||
|
|
||
|
import (
|
||
|
"unicode"
|
||
|
"unicode/utf8"
|
||
|
)
|
||
|
|
||
|
func IsExported(name string) bool {
|
||
|
w, _ := utf8.DecodeRuneInString(name)
|
||
|
return unicode.IsUpper(w)
|
||
|
}
|