Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/bootdotdev/bootdev
/ indentWidth
Function
indentWidth
checks/tmdl.go:57–72 ·
view source on GitHub ↗
(line string)
Source
from the content-addressed store, hash-verified
55
}
56
57
func
indentWidth(line string) int {
58
w := 0
59
60
for
_, r :=
range
line {
61
switch
r {
62
case
' '
:
63
w++
64
case
'\t'
:
65
w += tabWidth
66
default:
67
return
w
68
}
69
}
70
71
return
w
72
}
Callers
1
ExtractTmdlBlock
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected