MCPcopy Create free account
hub / github.com/dim-an/cod / FindFirstLine

Method FindFirstLine

parse_doc/textutil.go:73–80  ·  view source on GitHub ↗
(pattern string)

Source from the content-addressed store, hash-verified

71}
72
73func (pt *preparedText) FindFirstLine(pattern string) int {
74 for idx, line := range pt.lines {
75 if strings.Contains(line, pattern) {
76 return idx
77 }
78 }
79 return -1
80}
81
82//
83// Find first empty line starting from line `start'.

Callers 1

ParseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected