Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/goadesign/goa
/ runeSpacePosRev
Function
runeSpacePosRev
codegen/funcs.go:356–363 ·
view source on GitHub ↗
(r []rune)
Source
from the content-addressed store, hash-verified
354
}
355
356
func
runeSpacePosRev(r []rune) int {
357
for
i := len(r) - 1; i > 0; i-- {
358
if
unicode.IsSpace(r[i]) {
359
return
i
360
}
361
}
362
return
0
363
}
364
365
func
runeSpacePos(r []rune) int {
366
for
i :=
range
r {
Callers
1
WrapText
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected