Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SymbolLoader ¶
type SymbolLoader struct {
// contains filtered or unexported fields
}
func NewSymbolLoader ¶
func NewSymbolLoader(moduleName string) (*SymbolLoader, error)
NewSymbolLoader creates a SymbolLoader that loads symbol from a particular module. moduleName can be a file name under one of $GOPATH directories or current working directory, or an absolute path to the file.
func (*SymbolLoader) LoadSymbol ¶
func (l *SymbolLoader) LoadSymbol(symbolName string) (interface{}, error)
LoadSymbol looks up a symbol from the module. Plugin packages can accept this by defining an interface type without importing this package. It is important to note that each plugin package cannot import this plugins package since plugin module cannot import any packages that import built-in plugin package.
Click to show internal directories.
Click to hide internal directories.