Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseSearchPaths ¶ added in v1.7.3
ParseSearchPaths splits a path-list string on os.PathListSeparator, dropping empty entries. Returns nil for empty input.
func PathsFromInputs ¶ added in v1.7.3
PathsFromInputs returns the namespace search path from explicit and fallback inputs. When explicitSet is true the explicit value wins even if empty. Otherwise the fallback is used.
Types ¶
type NSResolver ¶
type NSResolver struct {
// LoadedChunks captures the compiled bytecode for each user-loaded namespace.
// Used by the compiler to serialize all namespaces into a bundle.
LoadedChunks map[string]*vm.CodeChunk
// LoadOrder preserves the order in which namespaces were loaded (dependency order).
LoadOrder []string
// contains filtered or unexported fields
}
func NewNSResolver ¶
func NewNSResolver(ctx *compiler.Context, path []string) *NSResolver
func (*NSResolver) SetPath ¶
func (r *NSResolver) SetPath(path []string)
Click to show internal directories.
Click to hide internal directories.