gomod

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListModuleJson

func ListModuleJson(dir string) []byte

func LookupModFile

func LookupModFile(dir string) string

Types

type Module

type Module struct {
	Path    string
	Version string
	Time    string
	Dir     string
	Main    bool
	Replace *Module
}

type ModuleList

type ModuleList struct {
	Dir     string
	Module  Module
	Require []*Module
}

func LooupModList

func LooupModList(dir string) *ModuleList

func (*ModuleList) LookupModule

func (m *ModuleList) LookupModule(pkgname string) (require *Module, path string, dir string)

type Package

type Package struct {
	Dir        string
	ImportPath string
	Name       string
	Module     *Module
}

Jump to

Keyboard shortcuts

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