env

package
v0.0.0-...-2097cc5 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env interface {
	Get(key string) (string, bool)
}

type EnvSource

type EnvSource interface {
	GetRaw(key string) (string, bool)
}

type OsEnvSource

type OsEnvSource struct{}

func NewOsEnvSource

func NewOsEnvSource() OsEnvSource

func (OsEnvSource) GetRaw

func (s OsEnvSource) GetRaw(key string) (string, bool)

type PrefixingEnv

type PrefixingEnv struct {
	// contains filtered or unexported fields
}

func NewPrefixingEnv

func NewPrefixingEnv(source EnvSource, prefix string) PrefixingEnv

func (PrefixingEnv) Get

func (p PrefixingEnv) Get(key string) (string, bool)

type TestEnvSource

type TestEnvSource struct {
	// contains filtered or unexported fields
}

func NewTestEnvSource

func NewTestEnvSource(values map[string]string) TestEnvSource

func (TestEnvSource) GetRaw

func (s TestEnvSource) GetRaw(key string) (string, bool)

Jump to

Keyboard shortcuts

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