package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Apr 5, 2016
License: BSD-3-Clause
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package pkgspec defines a schema that contains the path, origin, version
and other properties.
package pkgspec parses the package specification string
View Source
const (
TreeIncludeSuffix = "/^"
TreeMatchSuffix = "/..."
)
View Source
var (
ErrEmptyPath = errors.New("Empty package path")
ErrEmptyOrigin = errors.New("Empty origin specified")
ErrInvalidPath = errors.New("Path contains a vendor folder and a origin")
)
Parse a package spec according to:
package-sepc = <path>[{/...|/^}][::<origin>][@[<version-spec>]]
Source Files
¶
Click to show internal directories.
Click to hide internal directories.