utils

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: BSD-3-Clause, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppPath

func AppPath() string

func GoBin

func GoBin() (string, error)

func GoListDepsExport added in v0.6.0

func GoListDepsExport(dir string, toolexec string, pkg string) (map[string]string, error)

GoListDepsExport runs `go list -deps -export -json` with the given toolexec in the specified directory. It returns all transitive dependencies with their export file paths.

func GoListExportMap

func GoListExportMap(pkgs []string) (map[string]string, error)

GoListExportMap runs `go list -export -json` for the given packages and returns a map of import path -> export file path.

func GoModTidy

func GoModTidy(dir string) error

func GoPkgFiles

func GoPkgFiles(pkgPath string) ([]string, error)

func GoPkgPath

func GoPkgPath(pkg string) (string, error)

func GoRoot

func GoRoot() (string, error)

func GoVersion

func GoVersion() (string, error)

func ImportsFromSource

func ImportsFromSource(src []byte) ([]string, error)

ImportsFromSource extracts import packages from Go source.

func OverlayDir

func OverlayDir() string

func TobariTempDir

func TobariTempDir() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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