build

package
v0.0.0-...-f6aa287 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 License: ISC Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ExpectedContractType = "" /* 149-byte string literal not displayed */

ExpectedContractType is the expected function signature that a package implements to indicate that it defines an Algorand Smart Contract.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	Debug   bool
	DumpSSA bool
	// contains filtered or unexported fields
}

Builder handles the loading and compilation of a Go program to TEAL.

func New

func New() *Builder

New returns a new Builder.

func (*Builder) Build

func (b *Builder) Build() (*teal.Program, error)

Build assembles a TEAL program from a Go program.

func (*Builder) LoadSources

func (b *Builder) LoadSources(sources ...string) error

LoadSources loads go source packages and files to prepare for compilation.

Jump to

Keyboard shortcuts

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