util

package
v0.0.0-...-d69f115 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPackageFiles

func GetPackageFiles(packageRoot, packagePath string) (files []string, packageLocation string, err error)

func ListGoFiles

func ListGoFiles(packagePath string, cgo bool) ([]string, error)

func ListPackage

func ListPackage(path string) (*load.PackagePublic, error)

Types

type Ignore

type Ignore struct {
	Dirs    []string
	Trees   []string
	Regexes []*regexp.Regexp
}

Ignore specifies a set of resources to ignore

type OtherResources

type OtherResources struct {
	ProtoFiles []string
	TmplFiles  []string
	MDFiles    []string
	Other      []string
}

type PackageInfoCollector

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

func NewPackageInfoCollector

func NewPackageInfoCollector(ignore *Ignore, extensions []string) *PackageInfoCollector

func (*PackageInfoCollector) BuildArtifact

func (p *PackageInfoCollector) BuildArtifact() (*ProjectData, error)

func (*PackageInfoCollector) BuildPackageTree

func (p *PackageInfoCollector) BuildPackageTree(includeMain bool, tests bool) ([]string, error)

func (*PackageInfoCollector) CollectInstalledResources

func (p *PackageInfoCollector) CollectInstalledResources() ([]string, error)

func (*PackageInfoCollector) CollectPackageInfos

func (p *PackageInfoCollector) CollectPackageInfos(packagePath string) error

func (*PackageInfoCollector) CollectProjectDeps

func (p *PackageInfoCollector) CollectProjectDeps(standard bool, skipSelf bool, tests bool) ([]string, error)

type ProjectData

type ProjectData struct {
	Packages     []string            `json:"packages"`
	Dependencies map[string][]string `json:"dependencies"`
	Tests        map[string][]string `json:"tests"`
	MainFiles    map[string][]string `json:"main"`
}

Jump to

Keyboard shortcuts

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