modconv

package standard library
go1.13rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2019 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

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) error

ConvertLegacyConfig converts legacy config to modfile. The file argument is slash-delimited.

func ParseDependenciesTSV

func ParseDependenciesTSV(file string, data []byte) (*modfile.File, error)

func ParseGLOCKFILE

func ParseGLOCKFILE(file string, data []byte) (*modfile.File, error)

func ParseGlideLock

func ParseGlideLock(file string, data []