packages

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package packages provides functions to retrieve information about packages in a Golang project

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PackageInfo

type PackageInfo struct {
	Name        string         `json:"name"` // package name
	Path        string         `json:"path"` // package path
	PackageData *build.Package // describes the Go package
}

PackageInfo contains basic info about a package and a reference to the build.Package to describe this Go package.

func GetBasicPackagesInfo

func GetBasicPackagesInfo(prj *project.ProjectInfo) ([]*PackageInfo, error)

GetBasicPackagesInfo retrieves a slice with information about each package in a Golang project.

An error is returned when it's not possible to get the packages information

Jump to

Keyboard shortcuts

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