Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Locator ¶
type Locator interface { Packages() ([]Package, error) FindPackage(name string) (Package, bool, error) EntryPoint() (bytecode.FullIdentifier, error) }
func NewLocator ¶
type ModuleSource ¶
func NewModuleSource ¶
func NewModuleSource(filePath string, content []rune) ModuleSource
type Package ¶
type Package interface { Info() PackageInfo SetInfo(info PackageInfo) Sources() map[string][]rune NativeFilePaths(platform string) ([]string, error) Path() string }
func NewLoadedPackage ¶
func NewLoadedPackage(info PackageInfo, sources map[string][]rune, path string) Package
type PackageInfo ¶
type Provider ¶
type Provider interface { ExportedPackages() ([]Package, error) LoadPackage(name string) (Package, bool, error) }
func NewDirectoryProvider ¶
func NewMemoryPackageProvider ¶
func NewMemoryPackageProvider(info PackageInfo, sources map[string][]rune) Provider
Click to show internal directories.
Click to hide internal directories.