MCPcopy Index your code
hub / github.com/nikivdev/go / parseTitle

Function parseTitle

cli/spec/main.go:1002–1010  ·  view source on GitHub ↗
(content string)

Source from the content-addressed store, hash-verified

1000}
1001
1002func parseTitle(content string) string {
1003 for _, line := range strings.Split(content, "\n") {
1004 line = strings.TrimSpace(line)
1005 if strings.HasPrefix(line, "# ") {
1006 return strings.TrimSpace(strings.TrimPrefix(line, "# "))
1007 }
1008 }
1009 return ""
1010}
1011
1012func parseSections(content string) map[string]section {
1013 result := make(map[string]section)

Callers 2

runReviewFunction · 0.85
buildPromptBundleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected