Documentation ¶
Overview ¶
Package vendorfile is the meta-data file for vendoring. Round-trips unknown fields. It will also allow moving the vendor file to new locations.
Index ¶
Constants ¶
View Source
const Name = "vendor.json"
Name of the vendor file.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { RootPath string // Import path of vendor folder Comment string Ignore string Package []*Package // contains filtered or unexported fields }
File is the structure of the vendor file.
type Package ¶
type Package struct { // If delete is set to true the package will not be written to the vendor file. Remove bool // If new is set to true the package will be treated as a new package to the file. Add bool // See the vendor spec for definitions. Origin string Path string Tree bool Revision string RevisionTime string Version string VersionExact string ChecksumSHA1 string Comment string // contains filtered or unexported fields }
Package represents each package.
func (*Package) PathOrigin ¶
Click to show internal directories.
Click to hide internal directories.