MCPcopy Create free account
hub / github.com/CPChain/chain / isExported

Function isExported

api/rpc/utils.go:40–43  ·  view source on GitHub ↗

Is this an exported - upper case - name?

(name string)

Source from the content-addressed store, hash-verified

38
39// Is this an exported - upper case - name?
40func isExported(name string) bool {
41 rune, _ := utf8.DecodeRuneInString(name)
42 return unicode.IsUpper(rune)
43}
44
45// Is this type exported or a builtin?
46func isExportedOrBuiltinType(t reflect.Type) bool {

Callers 2

RegisterNameMethod · 0.85
isExportedOrBuiltinTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected