MCPcopy Create free account
hub / github.com/goadesign/goa / validIdentifier

Function validIdentifier

codegen/funcs.go:381–383  ·  view source on GitHub ↗

validIdentifier returns true if the rune is a letter or number

(r rune)

Source from the content-addressed store, hash-verified

379
380// validIdentifier returns true if the rune is a letter or number
381func validIdentifier(r rune) bool {
382 return unicode.IsLetter(r) || unicode.IsDigit(r)
383}
384
385// removeTrailingInvalid removes trailing invalid identifiers from runes.
386func removeTrailingInvalid(runes []rune) []rune {

Callers 3

camelCaseUncachedFunction · 0.85
removeTrailingInvalidFunction · 0.85
removeInvalidAtIndexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected