rewrite

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImportRewriter

type ImportRewriter interface {
	RewriteAstImports(f *ast.File) bool
	RewriteImports(filename string, source string) (bool, string, error)
}

func NewExactRewriter

func NewExactRewriter(rules map[string]string) ImportRewriter

func NewPrefixRewriter

func NewPrefixRewriter(rules map[string]string) ImportRewriter

Jump to

Keyboard shortcuts

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