compiler

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compiler

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

Compiler creates Go plugin object files.

func NewCompiler

func NewCompiler(root string) *Compiler

NewCompiler returns a new compiler instance.

func (*Compiler) Compile

func (b *Compiler) Compile() error

Compile changes its working directory to ${pluginRoot}/${g}/${v}/$lower(${k} and places object code next to source code.

func (*Compiler) ObjPath added in v0.3.3

func (b *Compiler) ObjPath() string

Absolute path to the compiler output (the .so file).

func (*Compiler) SetGVK added in v0.3.3

func (b *Compiler) SetGVK(g, v, k string)

Set GVK converts g,v,k tuples to file path components.

Jump to

Keyboard shortcuts

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