tool

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2016 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrBuildTool 不支持的编译工具错误
	ErrBuildTool = errors.New("unsupported build tool")
)

Functions

func Build

func Build(conf *config.Config, debug bool, dir string) error

Build 根据配置信息,调用合适的编译工具进行编译。 若配置的编译工具不在支持的工具范围内,则返回ErrBuildTool错误。

Types

type Builder

type Builder interface {
	Build(dir string) error
}

Builder 编译工具

type GBBuilder

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

GBBuilder gb编译工具

func NewGBBuilder

func NewGBBuilder(conf *config.Config, debug bool) *GBBuilder

NewGBBuilder 返回gb编译工具实例

func (*GBBuilder) Build

func (b *GBBuilder) Build(rootDir string) error

Build 切换到指定工作目录后调用编译工具编译。

type GoBuilder

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

GoBuilder go内置编译工具

func NewGoBuilder

func NewGoBuilder(conf *config.Config, debug bool) *GoBuilder

NewGoBuilder 返回go内置编译工具实例

func (*GoBuilder) Build

func (b *GoBuilder) Build(rootDir string) error

Build 切换到指定工作目录后调用编译工具编译。

Jump to

Keyboard shortcuts

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