list

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BuildMod string // BuildMod can be set readonly, vendor, or mod.
)

Functions

func GetImportPath

func GetImportPath(pkgName string, dir string) (string, error)

GetImportPath get import path from dir. - lookup go.mod and check modpath+dir+pkgname - use go list check if BuildMod == "mod".

Types

type ListDriver

type ListDriver struct {
	// contains filtered or unexported fields
}

ListDriver implement (*ixgo.Context).Lookup use go list

func (*ListDriver) Lookup

func (d *ListDriver) Lookup(root string, path string) (dir string, found bool)

Lookup implement (*ixgo.Context).Lookup

func (*ListDriver) Parse

func (d *ListDriver) Parse(root string) error

Parse parse deps by go list

Jump to

Keyboard shortcuts

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