modconv

package standard library
go1.11beta1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2018 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL