pkgutil

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsVendorExperiment

func IsVendorExperiment() bool

func VendorPathToImportPath

func VendorPathToImportPath(path string) string

func VendoredImportPath

func VendoredImportPath(parent *Package, path string) (found string, err error)

vendoredImportPath returns the expansion of path when it appears in parent. If parent is x/y/z, then path might expand to x/y/z/vendor/path, x/y/vendor/path, x/vendor/path, vendor/path, or else stay path if none of those exist. vendoredImportPath returns the expanded path or, if no expansion is found, the original.

Types

type Package

type Package struct {
	Root       string
	Dir        string
	ImportPath string
}

func ImportDir

func ImportDir(dir string) *Package

func ImportDirEx

func ImportDirEx(ctx *build.Context, dir string) *Package

func ImportFile

func ImportFile(fileName string) *Package

Jump to

Keyboard shortcuts

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