Documentation ¶
Index ¶
- Variables
- func ConvertLegacyConfig(f *modfile.File, file string, data []byte, ...) error
- func ParseDependenciesTSV(file string, data []byte) (*modfile.File, error)
- func ParseGLOCKFILE(file string, data []byte) (*modfile.File, error)
- func ParseGlideLock(file string, data []byte) (*modfile.File, error)
- func ParseGodepsJSON(file string, data []byte) (*modfile.File, error)
- func ParseGopkgLock(file string, data []byte) (*modfile.File, error)
- func ParseVendorConf(file string, data []byte) (*modfile.File, error)
- func ParseVendorJSON(file string, data []byte) (*modfile.File, error)
- func ParseVendorManifest(file string, data []byte) (*modfile.File, error)
- func ParseVendorYML(file string, data []byte) (*modfile.File, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Converters = map[string]func(string, []byte) (*modfile.File, error){ "GLOCKFILE": ParseGLOCKFILE, "Godeps/Godeps.json": ParseGodepsJSON, "Gopkg.lock": ParseGopkgLock, "dependencies.tsv": ParseDependenciesTSV, "glide.lock": ParseGlideLock, "vendor.conf": ParseVendorConf, "vendor.yml": ParseVendorYML, "vendor/manifest": ParseVendorManifest, "vendor/vendor.json": ParseVendorJSON, }
Functions ¶
func ConvertLegacyConfig ¶
func ConvertLegacyConfig(f *modfile.File, file string, data []byte, queryPackage func(path, rev string) (module.Version, error)) error
ConvertLegacyConfig converts legacy config to modfile. The file argument is slash-delimited.
func ParseDependenciesTSV ¶
func ParseVendorManifest ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.