export

package
v0.0.0-...-9dcd13a Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2017 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 Builder

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

Builder allows to create exportable package. This object is not reusable.

func NewBuilder

func NewBuilder(pkg *tu.Package) *Builder

NewBuilder returns fresh export package builder.

func (*Builder) AddExpr

func (b *Builder) AddExpr(obj *lapc.Object)

func (*Builder) AddFunc

func (b *Builder) AddFunc(fn *sexp.Func, obj *lapc.Object)

AddFunc pushes function definition into package.

func (*Builder) AddVars

func (b *Builder) AddVars(names []string)

func (*Builder) Build

func (b *Builder) Build() []byte

Build finalizes package being built. Package bytes returned. It is illegal to call Build method twice one the same builder.

Jump to

Keyboard shortcuts

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