Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetUseFreshConfig ¶
func SetUseFreshConfig(use bool)
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config represents global configuration properties. Config instances should be obtained via Get() which always returns a non-nil value. Methods on Config assume a non-nil receiver and will panic if called on nil.
func Get ¶
func Get() *Config
Get returns the global configuration singleton. This function is thread-safe and can be called from multiple goroutines concurrently. The configuration is lazily initialized on first access using sync.Once, ensuring loadConfig() is called exactly once even under concurrent access.
Click to show internal directories.
Click to hide internal directories.