Back to

Package rewrite

Latest Go to latest

The latest major version is .

Published: Aug 18, 2020 | License: MIT | Module:


type Import

type Import struct {
	Alias      string
	ImportPath string

type Rewriter

type Rewriter struct {
	// contains filtered or unexported fields

func New

func New(dir string) (*Rewriter, error)

func (*Rewriter) ExistingImports

func (r *Rewriter) ExistingImports(filename string) []Import

func (*Rewriter) GetMethodBody

func (r *Rewriter) GetMethodBody(structname string, methodname string) string

func (*Rewriter) MarkStructCopied

func (r *Rewriter) MarkStructCopied(name string)

func (*Rewriter) RemainingSource

func (r *Rewriter) RemainingSource(filename string) string

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier