search

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Path    string
	Package *Package
	Matches []*Match
}

File represents a Go file that contains one or more matching query struct types.

type Match

type Match struct {
	// The go/types.Named representation of the matched type.
	Named *types.Named
	// The source position of the matched type.
	Pos token.Pos
}

Match holds information on a matched query struct type.

type Package

type Package struct {
	Name  string
	Path  string
	Fset  *token.FileSet
	Info  *types.Info
	Files []*File
}

Package represents a Go package that contains one or more matching query struct types.

func Search(dir string, recursive bool, filter func(filePath string) bool) (out []*Package, err error)

Search

Jump to

Keyboard shortcuts

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