resolve

package
v0.0.67 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoResolveVersion added in v0.0.25

func GoResolveVersion(dir string, modPath string, version string) (string, error)

resolve version to a normalized version representation

func ResolveModPathFromPossibleDir

func ResolveModPathFromPossibleDir(dirOrModPath string) (dir string, modPath string, err error)

Types

type ModuleInfo

type ModuleInfo struct {
	Module struct {
		Path string `json:"Path"`
	} `json:"Module"`
	Require []struct {
		Path    string `json:"Path"`
		Version string `json:"Version"`
	} `json:"Require"`
}

func GetModuleInfo

func GetModuleInfo(dir string) (*ModuleInfo, error)

Jump to

Keyboard shortcuts

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