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)