stdenvcfg

package
v0.0.156 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 6 Imported by: 2

Documentation

Overview

Package stdenvcfg provides environment configuration as an fx dependency.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provide

func Provide[T any](prefix ...string) fx.Option

Provide configuration T as an fx dependency that parses the environment with an optional prefix.

func ProvideExplicitEnvironment added in v0.0.138

func ProvideExplicitEnvironment(vars map[string]string) fx.Option

ProvideExplicitEnvironment provides env options with environment options pre-set. Useful for testing.

func ProvideNamed added in v0.0.128

func ProvideNamed[T any](name string, prefix ...string) fx.Option

ProvideNamed configuration T as an fx dependency that parses the environment with an optional prefix.

func ProvideOSEnvironment added in v0.0.138

func ProvideOSEnvironment() fx.Option

ProvideOSEnvironment provides an Environment from the os.Environ.

Types

type Environment added in v0.0.61

type Environment map[string]string

Environment allows providing environment variables pre-set. Useful for testing.

type HexBytes added in v0.0.123

type HexBytes []byte

HexBytes can be used for configuration to read binary encoded values from the environment variables.

func (*HexBytes) UnmarshalText added in v0.0.123

func (p *HexBytes) UnmarshalText(text []byte) error

Jump to

Keyboard shortcuts

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