fix: error handling and vendor
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-08-04 10:55:35 +02:00
parent 8603738b38
commit 9e9227b420
1193 changed files with 283471 additions and 1 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
}