collector

package
v0.0.0-...-9530605 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2018 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Folder

type Folder struct {
	FileMap map[string]*ast.Package
	// contains filtered or unexported fields
}

Folder contains the information related to the files in a specific package

func (*Folder) GetFiles

func (f *Folder) GetFiles() map[string]*ast.Package

GetFiles is the way to retrieve all files in the current package

func (*Folder) Position

func (f *Folder) Position(pos token.Pos) string

Position is the way to print the right information of where is located a given issue

type PackageInfo

type PackageInfo interface {
	Position(pos token.Pos) string
	GetFiles() map[string]*ast.Package
}

PackageInfo is the interface that defines how to find the information regarding an issue

func Scan

func Scan(root string) ([]PackageInfo, error)

Scan is the main way to collect all the files to be scanned

Jump to

Keyboard shortcuts

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