Source File
eol_sol.go
Belonging Package
src.elv.sh/pkg/strutil
package strutilimport ()// FindFirstEOL returns the index of the first '\n'. When there is no '\n', the// length of s is returned.func ( string) int {:= strings.IndexRune(, '\n')if == -1 {= len()}return}// FindLastSOL returns an index just after the last '\n'.func ( string) int {return strings.LastIndex(, "\n") + 1}
The pages are generated with Golds v0.2.8-preview. (GOOS=darwin GOARCH=arm64)