0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-03-01 09:53:25 +01:00

13 lines
255 B
Go
Raw Normal View History

package denco
// NextSeparator returns an index of next separator in path.
func NextSeparator(path string, start int) int {
for start < len(path) {
if c := path[start]; c == '/' || c == TerminationCharacter {
break
}
start++
}
return start
}