importing

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: May 11, 2025 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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