Documentation
¶
Overview ¶
Package launchenv freezes environment layers at launch, matching util/launch-environment. Trust order is process environment, project .env, then user .env. Windows variable names are case-folded.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct {
Value string
Source Source
Path string // Source file path; empty for process environment.
}
Entry is a resolved environment entry.
type LayerInput ¶
LayerInput contains raw input for one layer.
type Snapshot ¶
type Snapshot struct {
// contains filtered or unexported fields
}
Snapshot is an immutable launch environment.
func New ¶
func New(layers []LayerInput) *Snapshot
New accepts layers in any order and resolves them in fixed trust order.
Click to show internal directories.
Click to hide internal directories.