overloader

package
v0.0.0-...-ee3845c Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OverLoader

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

func New

func New() *OverLoader

New is a constructor method for creating a new OverLoader with default templates loaded.

func (*OverLoader) Generate

func (l *OverLoader) Generate(f map[string]*ast.Package) (map[string][]byte, error)

func (*OverLoader) GenerateFromPath

func (l *OverLoader) GenerateFromPath(path string) (map[string][]byte, error)

GenerateFromPath is responsible for orchestrating the Code generation. It results in a byte array that can be written to any file desired. It has already had goimports run on the code before being returned.

func (*OverLoader) Visit

func (l *OverLoader) Visit(node ast.Node) ast.Visitor

Jump to

Keyboard shortcuts

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