env

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(serviceName service.Name, env interface{}) error

Load fills the structure env argument by loading environment variables into it.

Types

type Env

type Env[T any] struct {
	// contains filtered or unexported fields
}

Env is a type that holds information about a single environment variable. It can give both the environment variable source name and its loaded value.

func (Env[T]) String

func (e Env[T]) String() string

func (Env[T]) Value

func (e Env[T]) Value() T

func (Env[T]) VarName

func (e Env[T]) VarName() string

Jump to

Keyboard shortcuts

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