pkg

package
v0.0.0-...-5ab778b Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoPackage = errors.New("no package name")
)

Functions

func GetNameFromModule

func GetNameFromModule(modCacheDir, module, version, packageName string) (string, error)

getPackageName finds reads any non test go file from the package and extracts the package name out of it

Types

type Module

type Module struct {
	Name    string
	Require map[string]string
	Replace map[string]string
}

func ReadMod

func ReadMod(path string) (Module, error)

func (Module) SplitModulePackage

func (m Module) SplitModulePackage(url string) (string, string)

Jump to

Keyboard shortcuts

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