rewrite

package
v0.0.0-...-cd81575 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2017 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Spec []*Spec
}

func (*Config) RewritePackage

func (c *Config) RewritePackage() error

type Package

type Package struct {
	Files   map[string]*ast.File
	FileSet *token.FileSet
}

func (*Package) Reset

func (p *Package) Reset() error

type Spec

type Spec struct {
	TypeMap map[string]Type `yaml:"typeMap"`

	Name   string
	Import string
	Local  bool
}

type Type

type Type struct {
	Expr   string
	Import []string
}

Jump to

Keyboard shortcuts

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