summaryrefslogtreecommitdiffstats
path: root/src/cmd/go/internal/modconv/modconv.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/go/internal/modconv/modconv.go')
-rw-r--r--src/cmd/go/internal/modconv/modconv.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/cmd/go/internal/modconv/modconv.go b/src/cmd/go/internal/modconv/modconv.go
new file mode 100644
index 0000000..dc06072
--- /dev/null
+++ b/src/cmd/go/internal/modconv/modconv.go
@@ -0,0 +1,19 @@
+// Copyright 2018 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package modconv
+
+import "golang.org/x/mod/modfile"
+
+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,
+}