env

package
v0.0.0-...-7d77a24 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package env contains functions that retrieve data from the environment

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetenvFS

func GetenvFS(fsys fs.FS, key string, def ...string) string

GetenvFS retrieves the value of the environment variable named by the key. If the variable is unset, but the same variable ending in `_FILE` is set, the referenced file (resolved from the given filesystem) will be read into the value. Otherwise the provided default (or an emptry string) is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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