Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
539
func
splitLines(s string) []string {
540
if
s ==
""
{
541
return
nil
542
}
543
return
strings.Split(strings.TrimSuffix(s,
"\n"
),
"\n"
)
544
}
545
546
func
compactJSON(data []byte) string {
547
var
buf bytes.Buffer
Callers
2
printLog
Function · 0.85
lineDiff
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected