const path/filepath.Separator
28 uses
path/filepath (current package)
match.go#L52: return !strings.Contains(name, string(Separator)), nil
match.go#L69: for i := 0; i < len(name) && name[i] != Separator; i++ {
match.go#L178: if s[0] == Separator {
match.go#L291: case string(Separator):
path.go#L62: Separator = os.PathSeparator
path.go#L111: out.append(Separator)
path.go#L136: out.append(Separator)
path.go#L146: out.append(Separator)
path.go#L167: if Separator == '/' {
path.go#L170: return strings.ReplaceAll(path, string(Separator), "/")
path.go#L177: if Separator == '/' {
path.go#L180: return strings.ReplaceAll(path, "/", string(Separator))
path.go#L280: base = string(Separator)
path.go#L284: baseSlashed := len(base) > 0 && base[0] == Separator
path.go#L285: targSlashed := len(targ) > 0 && targ[0] == Separator
path.go#L294: for bi < bl && base[bi] != Separator {
path.go#L297: for ti < tl && targ[ti] != Separator {
path.go#L317: seps := strings.Count(base[b0:bl], string(Separator))
path.go#L325: buf[n] = Separator
path.go#L330: buf[n] = Separator
path.go#L569: return string(Separator)
path_unix.go#L45: return Clean(strings.Join(elem[i:], string(Separator)))
go/build
build.go#L177: const sep = string(filepath.Separator)
golang.org/x/sys/execabs
execabs.go#L42: return fmt.Errorf("%s resolves to executable in current directory (.%c%s)", file, filepath.Separator, path)
internal/execabs
execabs.go#L31: return fmt.Errorf("%s resolves to executable relative to current directory (.%c%s)", file, filepath.Separator, path)
net/http
fs.go#L72: if filepath.Separator != '/' && strings.ContainsRune(name, filepath.Separator) {
fs.go#L82: return nil, mapOpenError(err, fullName, filepath.Separator, os.Stat)