MCPcopy Create free account
hub / github.com/github/gh-aw / capitalizeFirst

Function capitalizeFirst

pkg/cli/project_command.go:253–258  ·  view source on GitHub ↗

capitalizeFirst capitalizes the first letter of a string

(s string)

Source from the content-addressed store, hash-verified

251
252// capitalizeFirst capitalizes the first letter of a string
253func capitalizeFirst(s string) string {
254 if s == "" {
255 return s
256 }
257 return strings.ToUpper(s[:1]) + s[1:]
258}
259
260// getOwnerNodeId gets the node ID for the owner
261func getOwnerNodeId(ctx context.Context, ownerType, owner string, verbose bool) (string, error) {

Callers 1

validateOwnerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected