MCPcopy Create free account
hub / github.com/expr-lang/expr / isPrivate

Function isPrivate

docgen/docgen.go:257–259  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

255var isCapital = regexp.MustCompile("^[A-Z]")
256
257func isPrivate(s string) bool {
258 return !isCapital.Match([]byte(s))
259}
260
261func isProtobuf(s string) bool {
262 return strings.HasPrefix(s, "XXX_")

Callers 1

useMethod · 0.70

Calls 1

MatchMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…