MCPcopy Create free account
hub / github.com/cli/cli / firstLine

Function firstLine

script/ghmock/schemacmd.go:608–611  ·  view source on GitHub ↗
(text string)

Source from the content-addressed store, hash-verified

606}
607
608func firstLine(text string) string {
609 line, _, _ := strings.Cut(strings.TrimSpace(text), "\n")
610 return strings.TrimSpace(line)
611}
612
613func sortedCopy(names []string) []string {
614 out := append([]string(nil), names...)

Callers 2

writeGraphQLTypeFunction · 0.70
writeGraphQLFieldFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected