mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-30 09:41:11 -05:00
9fe4437bda
* Use vendored go-swagger * vendor go-swagger * revert un wanteed change * remove un-needed GO111MODULE * Update Makefile Co-Authored-By: techknowlogick <matti@mdranta.net>
12 lines
255 B
Go
Vendored
12 lines
255 B
Go
Vendored
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
|
|
}
|