derive

package
v0.0.0-...-0ddb18c Latest Latest
Warning

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

Go to latest
Published: May 11, 2016 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(ok bool, format string, args ...interface{})

func Template

func Template(out io.Writer, data interface{}, format string)

Types

type Targets

type Targets struct {
	Pkg     string
	FileSet *token.FileSet
	Files   []string
	Names   []string
	Nodes   []ast.Node
}

func Load

func Load() *Targets

func (*Targets) FormatNode

func (t *Targets) FormatNode(node ast.Node) string

func (*Targets) Include

func (t *Targets) Include(name string) bool

func (*Targets) Visit

func (t *Targets) Visit(node ast.Node) ast.Visitor

Implements ast.Visit interface

func (*Targets) WriteEach

func (t *Targets) WriteEach(file string, transform func(io.Writer, ast.Node))

Jump to

Keyboard shortcuts

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