pkg

package
v0.0.0-...-3420630 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindStructInFiles

func FindStructInFiles(ls []*ast.File, name string) *ast.StructType

Types

type List

type List []*packages.Package

func (List) FindStruct

func (ls List) FindStruct(name string) *ast.StructType

type Pkg

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

func New

func New() *Pkg

func (*Pkg) List

func (p *Pkg) List(name string) (List, error)

func (*Pkg) SetImports

func (p *Pkg) SetImports(specs []*ast.ImportSpec) error

Jump to

Keyboard shortcuts

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