env

package
v0.0.0-...-d2e6534 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package env provides a way to automatically convert an environment variable value to a variety of types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get[T any](key string, fallback T) T

Get retrieves an environment variable, converting it to the desirable type constrained by a limited set of types which are applicable to environment values.

func NewEmptyEnvError

func NewEmptyEnvError(name string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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