ast

package
v0.0.0-...-bcea9b7 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DebugMode string = "DEV"
)

Variables

This section is empty.

Functions

func ChangeType

func ChangeType(typeName string, newType string, debugMode string) func(file *ast.File) *ast.File

func ModifyAst

func ModifyAst(dest []byte, fns ...func(*ast.File) *ast.File) ([]byte, error)

func RenamePackage

func RenamePackage(packageName string) func(file *ast.File) *ast.File

Types

type BadFormattedCode

type BadFormattedCode struct {
	Err error
}

func (BadFormattedCode) Error

func (e BadFormattedCode) Error() string

Jump to

Keyboard shortcuts

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