package modconv

import "cmd/go/internal/modconv"

Index

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 ParseDependenciesTSV(file string, data []byte) ([]module.Version, error)

func ParseGLOCKFILE

func ParseGLOCKFILE(file string, data []byte) ([]module.Version, error)

func ParseGlideLock

func ParseGlideLock(file string, data []byte) ([]module.Version, error)

func ParseGodepsJSON

func ParseGodepsJSON(file string, data []byte) ([]module.Version, error)

func ParseGopkgLock

func ParseGopkgLock(file string, data []byte) ([]module.Version, error)

func ParseVendorConf

func ParseVendorConf(file string, data []byte) ([]module.Version, error)

func ParseVendorJSON

func ParseVendorJSON(file string, data []byte) ([]module.Version, error)

func ParseVendorManifest

func ParseVendorManifest(file string, data []byte) ([]module.Version, error)

func ParseVendorYML

func ParseVendorYML(file string, data []byte) ([]module.Version, error)

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.