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

Function splitIncludePathAndSection

pkg/parser/include_processor.go:163–169  ·  view source on GitHub ↗
(includePath string)

Source from the content-addressed store, hash-verified

161}
162
163func splitIncludePathAndSection(includePath string) (string, string) {
164 if strings.Contains(includePath, "#") {
165 parts := strings.SplitN(includePath, "#", 2)
166 return parts[0], parts[1]
167 }
168 return includePath, ""
169}
170
171// processIncludedFile processes a single included file, optionally extracting a section
172// processIncludedFileWithVisited processes a single included file with cycle detection for nested includes

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected