loader

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPackFileNotFound   = errors.New("pack file not found")
	ErrPackFileLoadFailed = errors.New("pack file load failed")
)
View Source
var (
	PackFileName = (constants.APPNAME + "." + constants.PackFileExtension)
	NameRegex    = regexp.MustCompile(`^([a-zA-Z][a-zA-Z0-9_-]*)(\.[a-zA-Z][a-zA-Z0-9_-]*)*$`)
)

Functions

func IsValidPackName

func IsValidPackName(name string) bool

func LoadPack

func LoadPack(ctx context.Context, root string) (_ *pack.PackFile, e error)

func LoadPrograms

func LoadPrograms(ctx context.Context, packFile *pack.PackFile) ([]*ast.Program, error)

func ValidatePackFile

func ValidatePackFile(packFile *pack.PackFile) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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