build

package
v0.0.0-...-db593c7 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2015 License: BSD-2-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Import

func Import(path string, mode build.ImportMode, installSuffix string) (*build.Package, error)

func NewBuildContext

func NewBuildContext(installSuffix string) *build.Context

func Parse

func Parse(pkg *build.Package, fileSet *token.FileSet) ([]*ast.File, error)

Types

type ImportCError

type ImportCError struct{}

func (*ImportCError) Error

func (e *ImportCError) Error() string

type Options

type Options struct {
	GOROOT        string
	GOPATH        string
	Verbose       bool
	Watch         bool
	CreateMapFile bool
	Minify        bool
	Color         bool
}

func (*Options) PrintError

func (o *Options) PrintError(format string, a ...interface{})

func (*Options) PrintSuccess

func (o *Options) PrintSuccess(format string, a ...interface{})

type PackageData

type PackageData struct {
	*build.Package
	JsFiles    []string
	SrcModTime time.Time
	UpToDate   bool
	Archive    *compiler.Archive
}

type Session

type Session struct {
	Packages      map[string]*PackageData
	ImportContext *compiler.ImportContext
	Watcher       *fsnotify.Watcher
	// contains filtered or unexported fields
}

func NewSession

func NewSession(options *Options) *Session

func (*Session) BuildDir

func (s *Session) BuildDir(packagePath string, importPath string, pkgObj string) error

func (*Session) BuildFiles

func (s *Session) BuildFiles(filenames []string, pkgObj string, packagePath string) error

func (*Session) BuildPackage

func (s *Session) BuildPackage(pkg *PackageData) error

func (*Session) ImportPackage

func (s *Session) ImportPackage(path string) (*compiler.Archive, error)

func (*Session) InstallSuffix

func (s *Session) InstallSuffix() string

func (*Session) WaitForChange

func (s *Session) WaitForChange()

func (*Session) WriteCommandPackage

func (s *Session) WriteCommandPackage(pkg *PackageData, pkgObj string) error

Jump to

Keyboard shortcuts

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