rewrite

package
v0.17.35 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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, methodname string) string

func (*Rewriter) GetMethodComment added in v0.17.11

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

func (*Rewriter) GetPrevDecl added in v0.17.23

func (r *Rewriter) GetPrevDecl(structname, methodname string) *ast.FuncDecl

func (*Rewriter) MarkStructCopied

func (r *Rewriter) MarkStructCopied(name string)

func (*Rewriter) RemainingSource

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

Jump to

Keyboard shortcuts

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