genutil

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindClosestType

func FindClosestType(pkg *packages.Package, opts ...OptsFunc) (*ast.File, *types.TypeName, error)

func LoadPackage

func LoadPackage(opts ...OptsFunc) (*packages.Package, error)

func LoadPackageAndFindClosestType

func LoadPackageAndFindClosestType(opts ...OptsFunc) (*packages.Package, *ast.File, *types.TypeName, error)

Types

type Opts

type Opts struct {
	// contains filtered or unexported fields
}

type OptsFunc

type OptsFunc func(opts *Opts)

func FileName

func FileName(name string) OptsFunc

func Line

func Line(line int) OptsFunc

func PackageName

func PackageName(name string) OptsFunc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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