Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Downloader ¶
type Downloader struct {
// contains filtered or unexported fields
}
Downloader fetches repositories under the given source tree. Not thread-safe.
func NewDownloader ¶
func NewDownloader(srcRoot string) Downloader
func (*Downloader) DestinationPath ¶
func (d *Downloader) DestinationPath(pkg string) string
Determines where the repository will be downloaded before we download it.
type ImportPathError ¶
ImportPathError is a type of error that prevents a package from being loaded for a given import path. When such a package is loaded, a *Package is returned with Err wrapping an ImportPathError: the error is attached to the imported package, not the importing package.
The string returned by ImportPath must appear in the string returned by Error. Errors that wrap ImportPathError (such as PackageError) may omit the import path.
func ImportErrorf ¶
func ImportErrorf(path, format string, args ...interface{}) ImportPathError
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
auth
Package auth provides access to user-provided authentication credentials.
|
Package auth provides access to user-provided authentication credentials. |
|
web
Package web defines minimal helper routines for accessing HTTP/HTTPS resources without requiring external dependenicies on the net package.
|
Package web defines minimal helper routines for accessing HTTP/HTTPS resources without requiring external dependenicies on the net package. |
Click to show internal directories.
Click to hide internal directories.