importing

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilesOfArgs

func FilesOfArgs(args []string, opts *models.Options) []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, opts *models.Options) []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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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