MCPcopy Index your code
hub / github.com/bootdotdev/bootdev / hasLeftTrimmedPrefix

Function hasLeftTrimmedPrefix

checks/tmdl.go:52–55  ·  view source on GitHub ↗
(line, prefix string)

Source from the content-addressed store, hash-verified

50}
51
52func hasLeftTrimmedPrefix(line, prefix string) bool {
53 trimmed := strings.TrimLeft(line, " \t")
54 return strings.HasPrefix(trimmed, prefix)
55}
56
57func indentWidth(line string) int {
58 w := 0

Callers 1

ExtractTmdlBlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected