gen

package
v1.0.0-alpha19 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator interface {
	Write(opt *parser.Option) error
}

type Result

type Result struct {
	// PkgPath is the package's PkgPath.
	PkgPath string
	// OutputPath is the HTTPPath where the generated output should be written.
	// May be empty if there were errors.
	OutputPath string
	// Content is the gofmt'd source code that was generated. May be nil if
	// there were errors during generation.
	Content []byte
	// Errs is a slice of errors identified during generation.
	Errs []error
}

type Swipe

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

func NewSwipe

func NewSwipe(ctx context.Context, wd string, env []string, patterns []string) *Swipe

func (*Swipe) Generate

func (s *Swipe) Generate() ([]Result, []error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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