gen

package
v0.0.36 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoTopLevelContract = errors.New("no top level contract found")
)

Functions

This section is empty.

Types

type Generator

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

func NewGenerator

func NewGenerator(pkgName string, ignoreContractGeneration bool) *Generator

func (*Generator) Gen

func (g *Generator) Gen(cdc *ast.Program) error

Gen generates go functions

func (*Generator) GetOutput

func (g *Generator) GetOutput() *bytes.Buffer

GetOutput returns generated code

func (*Generator) Walk

func (g *Generator) Walk(e ast.Element) ast.Walker

Walk implements ast.Walker, to find top level contract of program

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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