Documentation
¶
Overview ¶
Package env implements the environment variable configuration source, fulfilling the core/config/Source interface.
Index ¶
Constants ¶
View Source
const ( // Name is the unique identifier for the environment variable source. Name = "env" // Priority defines the precedence of this source. // A value of 0 indicates the absolute highest priority, // meaning environment variables will override CLI flags, files, and remote configs. Priority = 0 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Env ¶
type Env struct {
// contains filtered or unexported fields
}
Env handles reading and writing configuration via OS environment variables.
func (*Env) Disconnect ¶
func (s *Env) Disconnect()
Disconnect is a no-op for environment variables as they don't require active connections.
func (*Env) GetAll ¶
GetAll scans all OS environment variables and converts them into framework-compatible keys. It converts underscores (_) to dots (.) to match the internal configuration hierarchy. Example: "ASJARD_SERVER_PORT=8080" becomes the key "asjard.server.port".
Click to show internal directories.
Click to hide internal directories.