filespec

package
v0.0.0-...-07240b3 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInfo

type FileInfo struct {
	Package *loader.PackageInfo
	Path    string
	File    *ast.File
}

type Spec

type Spec struct {
	Files    map[string][]string
	Packages map[string]bool
}

func New

func New(ctx *build.Context, args []string) (*Spec, error)

func (*Spec) CollectFiles

func (s *Spec) CollectFiles(prog *loader.Program) []FileInfo

func (*Spec) IterFiles

func (s *Spec) IterFiles(
	prog *loader.Program,
	fn func(*loader.PackageInfo, *ast.File) error,
) error

Jump to

Keyboard shortcuts

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