Documentation ¶
Index ¶
- func Import(path string, mode build.ImportMode, installSuffix string) (*build.Package, error)
- func NewBuildContext(installSuffix 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) 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) ImportPackage(path string) (*compiler.Archive, error)
- func (s *Session) InstallSuffix() string
- 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) BuildFiles ¶
func (*Session) BuildPackage ¶
func (s *Session) BuildPackage(pkg *PackageData) error
func (*Session) ImportPackage ¶
func (*Session) InstallSuffix ¶
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.