package modconv
import "cmd/go/internal/modconv"
Index ¶
- Constants
- Variables
- func ParseDependenciesTSV(file string, data []byte) ([]module.Version, error)
- func ParseGLOCKFILE(file string, data []byte) ([]module.Version, error)
- func ParseGlideLock(file string, data []byte) ([]module.Version, error)
- func ParseGodepsJSON(file string, data []byte) ([]module.Version, error)
- func ParseGopkgLock(file string, data []byte) ([]module.Version, error)
- func ParseVendorConf(file string, data []byte) ([]module.Version, error)
- func ParseVendorJSON(file string, data []byte) ([]module.Version, error)
- func ParseVendorManifest(file string, data []byte) ([]module.Version, error)
- func ParseVendorYML(file string, data []byte) ([]module.Version, error)
Constants ¶
const Prefix = "//vgo 0.0.4\n"
Prefix is a line we write at the top of auto-converted go.mod files for dependencies before caching them. In case of bugs in the converter, if we bump this version number, then all the cached copies will be ignored.
Variables ¶
var Converters = map[string]func(string, []byte) ([]module.Version, 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 ParseDependenciesTSV ¶
func ParseGLOCKFILE ¶
func ParseGlideLock ¶
func ParseGodepsJSON ¶
func ParseGopkgLock ¶
func ParseVendorConf ¶
func ParseVendorJSON ¶
func ParseVendorManifest ¶
func ParseVendorYML ¶
Source Files ¶
dep.go glide.go glock.go godeps.go modconv.go tsv.go vconf.go vjson.go vmanifest.go vyml.go
- Version
- v1.11.0-beta.1
- Published
- Jun 26, 2018
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 11 seconds ago –
Tools for package owners.