Documentation
¶
Overview ¶
Package pkgspec defines a schema that contains the path, origin, version and other properties.
package pkgspec parses the package specification string
Index ¶
Constants ¶
View Source
const ( TreeIncludeSuffix = "/^" TreeMatchSuffix = "/..." )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Pkg ¶
type Pkg struct {
Path string
FilePath string
Origin string
IncludeTree bool
MatchTree bool
HasVersion bool
HasOrigin bool
Version string
Uncommitted bool
}
func Parse ¶
Parse a package spec according to: package-spec = <path>[{/...|/^}][::<origin>][@[<version-spec>]]
func (*Pkg) PathOrigin ¶
Click to show internal directories.
Click to hide internal directories.