aggregate

package
v0.0.0-...-1e71931 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidFile  = errors.New("invalid file")
	ErrNotFoundFile = errors.New("no such a file")
)

error variables.

Functions

func Fprint

func Fprint(w io.Writer, f *ast.File) error

Fprint wrapped printer.Print

Types

type Aggregator

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

Aggregator provides aggregate for main and depend file.

func New

func New() *Aggregator

New returns initialized Aggregator.

func (Aggregator) Invoke

func (a Aggregator) Invoke(main string, depends []string) (*ast.File, error)

Invoke aggregate main and depend files.

type File

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

File represent package and files

Jump to

Keyboard shortcuts

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