pkg

package
v0.0.0-...-13c19bd Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pkg

type Pkg []string

Pkg represents packages to parse and generate interfaces for.

func (*Pkg) Parse

func (p *Pkg) Parse(prefix ...string) (map[string]*parse.Package, error)

Parse constructs a list of Package located in a common GOROOT source parent directory, parsing (via AST construction) lists of exported function signatures/definitions associated with each said Package, and returns a map of each package path to the Package populated with all exported function signatures discovered.

func (*Pkg) Set

func (p *Pkg) Set(value string) error

Set implements the flag.Value interface to parse packages from -pkg flags.

func (*Pkg) String

func (p *Pkg) String() string

String constructs a descriptive representation of a Pkg.

Jump to

Keyboard shortcuts

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