base-golang/pkg/websocket/util/util.go
2024-07-23 10:23:43 +08:00

12 lines
157 B
Go

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