first commit
This commit is contained in:
11
pkg/websocket/util/util.go
Normal file
11
pkg/websocket/util/util.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package util
|
||||
|
||||
import (
|
||||
"unicode"
|
||||
"unicode/utf8"
|
||||
)
|
||||
|
||||
func IsExported(name string) bool {
|
||||
w, _ := utf8.DecodeRuneInString(name)
|
||||
return unicode.IsUpper(w)
|
||||
}
|
Reference in New Issue
Block a user