Documentation ¶
Index ¶
- func Import(path string, mode build.ImportMode, archSuffix string) (*build.Package, error)
- func NewBuildContext(archSuffix string) *build.Context
- func Parse(pkg *build.Package, fileSet *token.FileSet) ([]*ast.File, error)
- type ImportCError
- type Options
- type PackageData
- type Session
- func (s *Session) ArchSuffix() string
- func (s *Session) BuildDir(packagePath string, importPath string, pkgObj string) error
- func (s *Session) BuildFiles(filenames []string, pkgObj string, packagePath string) error
- func (s *Session) BuildPackage(pkg *PackageData) error
- func (s *Session) ImportDependencies(archive *compiler.Archive) ([]*compiler.Archive, error)
- func (s *Session) ImportPackage(path string) (*compiler.Archive, error)
- func (s *Session) WaitForChange()
- func (s *Session) WriteCommandPackage(pkg *PackageData, pkgObj string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBuildContext ¶
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 (*Options) PrintSuccess ¶
type PackageData ¶
type Session ¶
type Session struct { Packages map[string]*PackageData ImportContext *compiler.ImportContext Watcher *fsnotify.Watcher // contains filtered or unexported fields }
func NewSession ¶
func (*Session) ArchSuffix ¶
func (*Session) BuildFiles ¶
func (*Session) BuildPackage ¶
func (s *Session) BuildPackage(pkg *PackageData) error
func (*Session) ImportDependencies ¶
func (*Session) ImportPackage ¶
func (*Session) WaitForChange ¶
func (s *Session) WaitForChange()
func (*Session) WriteCommandPackage ¶
func (s *Session) WriteCommandPackage(pkg *PackageData, pkgObj string) error
Click to show internal directories.
Click to hide internal directories.