golist

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Package

type Package struct {
	Dir        string   // directory containing package sources
	ImportPath string   // import path of package in dir
	GoFiles    []string // .go source files (excluding CgoFiles, TestGoFiles, XTestGoFiles)
}

Package is `go list --json` output structure.

func JSON

func JSON(pkgPath string) (*Package, error)

JSON runs `go list --json` for the specified pkgName and returns the parsed JSON.

Jump to

Keyboard shortcuts

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