Documentation
¶
Overview ¶
Package environment is an abstraction that Ferrite uses to interact with the environment.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EqualNames ¶
EqualNames returns true if the given names refer to the same environment variable.
func NormalizeName ¶
NormalizeName normalizes an environment variable name for use as a key within a map.
func Range ¶
Range calls fn for each environment variable.
It stops iterating if fn returns false. It returns true if iteration reached the end.
func RestoreSnapshot ¶
func RestoreSnapshot(s *Snapshot)
RestoreSnapshot restores the environment to the state it was in when the given snapshot was taken.
Types ¶
type Snapshot ¶
type Snapshot struct {
// contains filtered or unexported fields
}
Snapshot is a snapshot of the environment.
func TakeSnapshot ¶
func TakeSnapshot() *Snapshot
TakeSnapshot takes a snapshot of the variables within the environment.
Click to show internal directories.
Click to hide internal directories.