importing

package
v0.0.0-...-2dfdc9a Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2015 License: MIT Imports: 10 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilesOfArgs

func FilesOfArgs(args []string) []string

FilesOfArgs returns all available Go files given a list of packages, directories and files which can embed patterns.

Types

type Package

type Package struct {
	Name  string
	Files []string
}

Package holds file information of a package.

func PackagesWithFilesOfArgs

func PackagesWithFilesOfArgs(args []string) []Package

PackagesWithFilesOfArgs returns all available Go files sorted by their packages given a list of packages, directories and files which can embed patterns.

type Packages

type Packages []Package

Packages defines a list of packages.

func (Packages) Len

func (p Packages) Len() int

Len is the number of elements in the collection.

func (Packages) Swap

func (p Packages) Swap(i, j int)

Swap swaps the elements with indexes i and j.

type PackagesByName

type PackagesByName struct{ Packages }

PackagesByName sorts a list of packages by their name.

func (PackagesByName) Less

func (p PackagesByName) Less(i, j int) bool

Less reports whether the element with index i should sort before the element with index j.

Jump to

Keyboard shortcuts

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