build

package
v0.0.0-...-5eae2ec Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2014 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, archSuffix string) (*build.Package, error)

func NewBuildContext

func NewBuildContext(archSuffix 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) ArchSuffix

func (s *Session) ArchSuffix() string

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) ImportDependencies

func (s *Session) ImportDependencies(archive *compiler.Archive) ([]*compiler.Archive, error)

func (*Session) ImportPackage

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

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