mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-02 15:30:01 +00:00
13 lines
255 B
Go
13 lines
255 B
Go
|
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
|
||
|
}
|