func path/filepath.Join
80 uses
path/filepath (current package)
match.go#L346: m = append(m, Join(dir, n))
path.go#L212: func Join(elem ...string) string {
path.go#L255: return Join(wd, path), nil
path.go#L400: path1 := Join(path, d1.Name())
path.go#L431: filename := Join(path, name)
github.com/aws/aws-sdk-go/internal/shareddefaults
shared_config.go#L17: return filepath.Join(UserHomeDir(), ".aws", "credentials")
shared_config.go#L28: return filepath.Join(UserHomeDir(), ".aws", "config")
github.com/go-git/go-billy/v5/osfs
os.go#L107: return filepath.Join(elem...)
github.com/go-git/go-billy/v5/util
glob.go#L86: m = append(m, filepath.Join(dir, n))
util.go#L156: name := filepath.Join(dir, prefix+nextSuffix())
util.go#L187: try := filepath.Join(dir, prefix+nextSuffix())
github.com/go-git/go-git/v5
repository.go#L430: if err := os.RemoveAll(filepath.Join(path, name)); err != nil {
worktree.go#L740: path := filepath.Join(dir, fi.Name())
github.com/go-git/go-git/v5/config
config.go#L173: files = append(files, filepath.Join(xdg, "git/config"))
config.go#L182: filepath.Join(home, ".gitconfig"),
config.go#L183: filepath.Join(home, ".config/git/config"),
github.com/go-git/go-git/v5/plumbing/object
tree.go#L139: path := filepath.Join(pathParts[:i]...)
tree.go#L158: pathCurrent = filepath.Join(pathCurrent, pathParts[0])
github.com/go-git/go-git/v5/plumbing/transport/file
client.go#L66: cmd = filepath.Join(execPath, cmd)
github.com/go-git/go-git/v5/plumbing/transport/ssh
auth_method.go#L274: filepath.Join(homeDirPath, "/.ssh/known_hosts"),
github.com/go-git/go-git/v5/storage/filesystem/dotgit
dotgit.go#L1070: relpath := filepath.Join(strings.Split(slashPath, "/")[1:]...)
dotgit.go#L1072: path = filepath.Join(d.fs.Root(), normalPath)
github.com/google/safehtml/template
trustedsource.go#L63: return TrustedSource{filepath.Join(string(dir), src.String(), filename)}, nil
trustedsource.go#L70: return TrustedSource{filepath.Join(trustedSourcesToStrings(elem)...)}
github.com/jackc/pgconn
config.go#L106: address = filepath.Join(host, ".s.PGSQL.") + strconv.FormatInt(int64(port), 10)
defaults.go#L23: settings["passfile"] = filepath.Join(user.HomeDir, ".pgpass")
defaults.go#L24: settings["servicefile"] = filepath.Join(user.HomeDir, ".pg_service.conf")
github.com/kevinburke/ssh_config
config.go#L75: return filepath.Join(homedir(), ".ssh", "config")
config.go#L88: return filepath.Join("/", "etc", "ssh", "ssh_config")
config.go#L568: path = filepath.Join("/etc/ssh", directives[i])
config.go#L570: path = filepath.Join(homedir(), ".ssh", directives[i])
github.com/lib/pq
conn.go#L194: filename = filepath.Join(userHome, ".pgpass")
ssl.go#L96: sslcert = filepath.Join(user.HomeDir, ".postgresql", "postgresql.crt")
ssl.go#L114: sslkey = filepath.Join(user.HomeDir, ".postgresql", "postgresql.key")
github.com/mitchellh/go-homedir
homedir.go#L76: return filepath.Join(dir, path[1:]), nil
github.com/prometheus/procfs
vm.go#L101: name := filepath.Join(path, f.Name())
github.com/prometheus/procfs/internal/fs
fs.go#L54: return filepath.Join(append([]string{string(fs)}, p...)...)
go/build
build.go#L116: return filepath.Join(elem...)
build.go#L282: def := filepath.Join(home, "go")
build.go#L1092: if _, ok := ctxt.hasSubdir(filepath.Join(ctxt.GOROOT, "src"), absSrcDir); ok {
build.go#L1737: args[i] = filepath.Join(srcDir, arg)
build.go#L1745: args[i] = arg[:2] + filepath.Join(srcDir, arg[2:])
gc.go#L16: return filepath.Join(runtime.GOROOT(), "pkg/tool/"+runtime.GOOS+"_"+runtime.GOARCH)
go/parser
interface.go#L155: filename := filepath.Join(path, d.Name())
go/scanner
scanner.go#L281: filename = filepath.Join(s.dir, filename)
golang.org/x/mod/zip
zip.go#L346: cf.Valid[i] = filepath.Join(dir, cf.Valid[i])
zip.go#L350: cf.Omitted[i].Path = filepath.Join(dir, cf.Omitted[i].Path)
zip.go#L353: cf.Invalid[i].Path = filepath.Join(dir, cf.Invalid[i].Path)
zip.go#L645: dst := filepath.Join(dir, name)
zip.go#L752: if goModInfo, err := os.Lstat(filepath.Join(filePath, "go.mod")); err == nil && !goModInfo.IsDir() {
golang.org/x/oauth2/google
default.go#L143: return filepath.Join(os.Getenv("APPDATA"), "gcloud", f)
default.go#L145: return filepath.Join(guessUnixHomeDir(), ".config", "gcloud", f)
sdk.go#L59: credentialsPath := filepath.Join(configPath, "credentials")
sdk.go#L74: propertiesPath := filepath.Join(configPath, "properties")
sdk.go#L182: return filepath.Join(os.Getenv("APPDATA"), "gcloud"), nil
sdk.go#L188: return filepath.Join(homeDir, ".config", "gcloud"), nil
golang.org/x/pkgsite/internal/fetch
fetchlocal.go#L85: if goModBytes, err := ioutil.ReadFile(filepath.Join(localPath, "go.mod")); err != nil {
fetchlocal.go#L147: writeTo, err := w.Create(filepath.Join(moduleVersionDir(modulePath, version), strings.TrimPrefix(path, localPath)))
golang.org/x/pkgsite/internal/localdatasource
datasource.go#L100: path := filepath.Join(gopath, "src", modulePath)
golang.org/x/pkgsite/internal/proxy
test_helper.go#L55: files, err := filepath.Glob(filepath.Join(dir, "*.txtar"))
golang.org/x/pkgsite/internal/stdlib
stdlib.go#L210: fs := osfs.New(filepath.Join(testhelper.TestDataPath("testdata"), version))
golang.org/x/pkgsite/internal/symbol
apigodoc.go#L69: apiGlob = filepath.Join(filepath.Clean(runtime.GOROOT()), "api", "go*.txt")
apigodoc.go#L71: apiGlob = filepath.Join(dir, pkgPath, "v*.txt")
golang.org/x/pkgsite/internal/testing/testhelper
testhelper.go#L113: return filepath.Clean(filepath.Join(filepath.Dir(filename), filepath.FromSlash(rel)))
testhelper.go#L126: path = filepath.Join(tempDir, path)
testhelper.go#L161: filename := filepath.Join("testdata", name)
testhelper.go#L169: data, err := ioutil.ReadFile(filepath.Join("testdata", name))
golang.org/x/pkgsite/internal/worker
memory.go#L144: data, err := ioutil.ReadFile(filepath.Join(cgroupMemDir, filename))
memory.go#L165: f, err := os.Open(filepath.Join(cgroupMemDir, "memory.stat"))
google.golang.org/api/transport/cert
default_cert.go#L68: filename := filepath.Join(user.HomeDir, metadataPath, metadataFile)
internal/goroot
gc.go#L22: dir := filepath.Join(goroot, "src", path)
gc.go#L83: goDir := filepath.Join(dir, "go", version)
gc.go#L86: goDir = filepath.Join(goDir, machine)
gc.go#L124: full := filepath.Join(dir, path) + ".gox"
io/ioutil
tempfile.go#L63: name := filepath.Join(dir, prefix+nextRandom()+suffix)
tempfile.go#L116: try := filepath.Join(dir, prefix+nextRandom()+suffix)
net/http
fs.go#L79: fullName := filepath.Join(dir, filepath.FromSlash(path.Clean("/"+name)))
os/exec
exec.go#L349: path = filepath.Join(".", path)
exec.go#L360: dirandpath := filepath.Join(dir, path)
lp_unix.go#L53: path := filepath.Join(dir, file)
 |
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. |