package gitrepo
import "cmd/go/internal/modfetch/gitrepo"
Package gitrepo provides a Git-based implementation of codehost.Repo.
Index ¶
- func LocalRepo(remote, root string) (codehost.Repo, error)
- func Repo(remote, root string) (codehost.Repo, error)
Functions ¶
func LocalRepo ¶
LocalRepo is like Repo but accepts both Git remote references and paths to repositories on the local file system. The returned repo reports the given root as its module root.
func Repo ¶
Repo returns the code repository at the given Git remote reference. The returned repo reports the given root as its module root.
Source Files ¶
- Version
- v1.11.0-beta.1
- Published
- Jun 26, 2018
- Platform
- linux/amd64
- Imports
- 13 packages
- Last checked
- 1 minute ago –
Tools for package owners.