modifier

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: ISC Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DebugModifier

type DebugModifier struct {
	// contains filtered or unexported fields
}

DebugModifier is used for debugging an ast.Node. It implements the Pre and Post astutil.ApplyFunc functions.

func NewDebug

func NewDebug(depth int, logger *log.ColorfulLogger) *DebugModifier

NewDebug creates a new debug modifier.

func (*DebugModifier) Modify

func (m *DebugModifier) Modify(n ast.Node) ast.Node

Modify prints debugging information for a ast.File node.

type GenericModifier

type GenericModifier struct {
	// contains filtered or unexported fields
}

GenericModifier is used for decorating a generic package. It implements the Pre and Post astutil.ApplyFunc functions.

func NewGeneric

func NewGeneric(depth int, logger *log.ColorfulLogger) *GenericModifier

NewGeneric creates a new generic modifier.

func (*GenericModifier) Modify

func (m *GenericModifier) Modify(module, relPath string, n ast.Node) ast.Node

Modify modifies an ast.File node.

type MainModifier

type MainModifier struct {
	// contains filtered or unexported fields
}

MainModifier is used for decorating the main package. It implements the Pre and Post astutil.ApplyFunc functions.

func NewMain

func NewMain(depth int, logger *log.ColorfulLogger) *MainModifier

NewMain creates a new main modifier.

func (*MainModifier) Modify

func (m *MainModifier) Modify(module, decDir string, n ast.Node) ast.Node

Modify modifies an ast.File node.

Jump to

Keyboard shortcuts

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