Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/bracesdev/errtrace
/ trimTrailingSpaces
Function
trimTrailingSpaces
example_tree_test.go:66–72 ·
view source on GitHub ↗
(s string)
Source
from the content-addressed store, hash-verified
64
}
65
66
func
trimTrailingSpaces(s string) string {
67
lines := strings.Split(s,
"\n"
)
68
for
i :=
range
lines {
69
lines[i] = strings.TrimRight(lines[i],
" \t"
)
70
}
71
return
strings.Join(lines,
"\n"
)
72
}
Callers
1
Example_tree
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected