go modconv 源码

  • 2022-07-15
  • 浏览 (904)

golang modconv 代码

文件路径:/src/cmd/go/internal/modconv/modconv.go

// 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,
}

相关信息

go 源码目录

相关文章

go convert 源码

go dep 源码

go glide 源码

go glock 源码

go godeps 源码

go modconv_test 源码

go tsv 源码

go vconf 源码

go vjson 源码

go vmanifest 源码

0  赞