added vendor

This commit is contained in:
kolaente 2018-10-28 17:24:10 +01:00
parent 738c22b5f9
commit 2556ef7624
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
484 changed files with 140231 additions and 0 deletions

View file

@ -0,0 +1,12 @@
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
}