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

Function Title

expr/helpers.go:10–12  ·  view source on GitHub ↗

Title returns the string with the first character of each word in upper case.

(s string)

Source from the content-addressed store, hash-verified

8
9// Title returns the string with the first character of each word in upper case.
10func Title(s string) string {
11 return cases.Title(language.Und, cases.NoLower).String(s)
12}
13
14// findKey finds the given key in the endpoint expression and returns the
15// transport element name and the position (header, query, cookie, or body for

Callers 6

AttributeFunction · 0.92
mediaTypeToResultTypeFunction · 0.92
camelCaseUncachedFunction · 0.92
concatFunction · 0.70
projectSingleFunction · 0.70

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected