list

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

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