func path/filepath.Rel
6 uses
path/filepath (current package)
path.go#L266: func Rel(basepath, targpath string) (string, error) {
github.com/go-git/go-billy/v5/helper/chroot
chroot.go#L195: target, err = filepath.Rel(fs.base, target)
chroot.go#L232: filename, _ = filepath.Rel(fs.Root(), filename)
github.com/go-git/go-git/v5
repository.go#L128: path, err := filepath.Rel(worktree.Root(), storage.Root())
repository.go#L149: path, err := filepath.Rel(storage.Root(), worktree.Root())
golang.org/x/mod/zip
zip.go#L721: relPath, err := filepath.Rel(dir, filePath)
 |
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. |