MCPcopy
hub / github.com/gobyexample-cn/gobyexample / readLines

Function readLines

tools/generate.go:72–75  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

70}
71
72func readLines(path string) []string {
73 src := mustReadFile(path)
74 return strings.Split(src, "\n")
75}
76
77func mustGlob(glob string) []string {
78 paths, err := filepath.Glob(glob)

Callers 3

parseHashFileFunction · 0.70
parseSegsFunction · 0.70
parseExamplesFunction · 0.70

Calls 1

mustReadFileFunction · 0.85

Tested by

no test coverage detected