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

Function splitLines

script/ghmock/report.go:539–544  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

537}
538
539func splitLines(s string) []string {
540 if s == "" {
541 return nil
542 }
543 return strings.Split(strings.TrimSuffix(s, "\n"), "\n")
544}
545
546func compactJSON(data []byte) string {
547 var buf bytes.Buffer

Callers 2

printLogFunction · 0.85
lineDiffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected