program

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RuntimeTypeSchemas added in v0.13.0

func RuntimeTypeSchemas(
	types map[string]*runtime.TypeSchema, used map[string]bool, category runtime.Category,
) map[string]*runtime.TypeSchema

RuntimeTypeSchemas retains schema fields needed for the types used by a factory.

Types

type BuildProfile

type BuildProfile string
const (
	BuildProfileFull  BuildProfile = "full"
	BuildProfileLocal BuildProfile = "local"
)

func ParseBuildProfile

func ParseBuildProfile(value string) (BuildProfile, error)

type CheckedBody

type CheckedBody struct {
	Imports    *Imports
	DAG        *runtime.DAG
	LocalTypes map[string]typecheck.Type
}

type Composite

type Composite struct {
	Category             string
	Export               string
	Body                 syntax.FactoryBody
	Imports              []resolve.Resolution
	Libraries            map[string]*runtime.Library
	LibraryConfigSchemas map[string]runtime.LibraryConfigSchema
	AssetSetID           string
}

type Imports

type Imports struct {
	Top                  []resolve.Resolution
	Libraries            map[string]*runtime.Library
	LibraryConfigSchemas map[string]runtime.LibraryConfigSchema
	GoModules            map[string]string
	UBLibraries          []Library
	Assets               *asset.Collection
	RootAssetSetID       string
	Compatibility        *golibrary.CompatibilityContext
	LibraryMetadata      []golibrary.PackageMetadata
}

type Library

type Library struct {
	Name         string
	CanonicalKey string
	Composites   []Composite
	Specs        map[string]LibrarySpec
	SourceFiles  map[string]syntax.SourceFileSpec
}

type LibrarySpec

type LibrarySpec struct {
	Constraints map[string][]lang.ConstraintSpec
	Defaults    map[string][]lang.DefaultSpec
	Schema      *runtime.LibrarySchema
}

func (LibrarySpec) Empty

func (s LibrarySpec) Empty() bool

Jump to

Keyboard shortcuts

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