Documentation ¶
Index ¶
- func Import(path string, mode build.ImportMode, installSuffix string, buildTags []string) (*build.Package, error)
- func NewBuildContext(installSuffix string, buildTags []string) *build.Context
- func NewMappingCallback(m *sourcemap.Map, goroot, gopath string) func(generatedLine, generatedColumn int, originalPos token.Position)
- 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 ¶
func NewMappingCallback ¶
Types ¶
type ImportCError ¶
type ImportCError struct {
// contains filtered or unexported fields
}
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 BuildTags []string }
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.