const path/filepath.Separator
34 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: baseSlashed := len(base) > 0 && base[0] == Separator
path.go#L281: targSlashed := len(targ) > 0 && targ[0] == Separator
path.go#L290: for bi < bl && base[bi] != Separator {
path.go#L293: for ti < tl && targ[ti] != Separator {
path.go#L313: seps := strings.Count(base[b0:bl], string(Separator))
path.go#L321: buf[n] = Separator
path.go#L326: buf[n] = Separator
path.go#L565: return string(Separator)
path_unix.go#L45: return Clean(strings.Join(elem[i:], string(Separator)))
github.com/go-git/go-billy/v5/helper/chroot
chroot.go#L40: return strings.HasPrefix(path, ".."+string(filepath.Separator))
chroot.go#L167: if filepath.IsAbs(target) || strings.HasPrefix(target, string(filepath.Separator)) {
chroot.go#L191: if !filepath.IsAbs(target) && !strings.HasPrefix(target, string(filepath.Separator)) {
github.com/go-git/go-billy/v5/helper/polyfill
polyfill.go#L92: return string(filepath.Separator)
github.com/go-git/go-billy/v5/util
glob.go#L54: case string(filepath.Separator):
github.com/google/safehtml/template
trustedsource.go#L57: if i := strings.IndexAny(filename, string([]rune{filepath.Separator, filepath.ListSeparator})); i != -1 {
go/build
build.go#L173: const sep = string(filepath.Separator)
golang.org/x/mod/modfile
rule.go#L349: if filepath.Separator == '/' && strings.Contains(ns, `\`) {
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#L53: parts := strings.Split(name, string(filepath.Separator))
fs.go#L58: fi, err := os.Stat(strings.Join(parts[:i+1], string(filepath.Separator)))
fs.go#L72: if filepath.Separator != '/' && strings.ContainsRune(name, filepath.Separator) {
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |