packages

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package packages exposes methods for listing packages URIs, filenames, etc...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

API contains methods that interact directly with the host environment.

func New

func New(execAPI hostiface.ExecAPI, osioAPI hostiface.OSIOAPI) *API

New returns a reference to an API

func (*API) GetFileNamesForPackage

func (a *API) GetFileNamesForPackage(pkg string) ([]string, error)

GetFileNamesForPackage returns a list package URIs with associated filenames.

func (*API) GetPackages

func (a *API) GetPackages(exclusionPatterns []string) (packages []string, err error)

GetPackages shells out a go list command that retusn a list of all packages below the current directory.

Source Files

  • api.go

Jump to

Keyboard shortcuts

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