gomod

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const MOD_NAME = "go.mod"

Variables

This section is empty.

Functions

This section is empty.

Types

type ModInfo

type ModInfo struct {
	Path       string
	ModuleName string
}

func FindMod

func FindMod(startPath string) (info ModInfo, err error)

func OpenModFile

func OpenModFile(modFile string) (ModInfo, error)

func (ModInfo) ModImportPath

func (modInfo ModInfo) ModImportPath(dir string) string

ModImportPath returns the go import path for the given file path.

Jump to

Keyboard shortcuts

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