resources

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package resources loads Go-declared package assets into the shared Bindly filesystem authority used by compilation and invocation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loaded

type Loaded struct {
	Store *resource.Store
	// contains filtered or unexported fields
}

func (*Loaded) IsAsset

func (l *Loaded) IsAsset(path string) bool

IsAsset identifies exact embedded files, not filename patterns.

type Loader

type Loader struct {
	Workspace *xmodule.Workspace
	Packages  []string
	Holders   []any
}

func (Loader) Load

func (l Loader) Load(ctx context.Context) (*Loaded, error)

Load creates a fresh stage-owned store. Missing files, invalid embed declarations and namespace collisions fail without mutating any previously published store.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL