env

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package env reads environment variables.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool added in v1.2.0

func Bool(name string, defaultValue bool) bool

Bool extracts bool from env var. It returns the provided defaultValue if the env var is empty. The bool returned is also recorded in logs.

func String

func String(name string, defaultValue string) string

String extracts string from env var. It returns the provided defaultValue if the env var is empty. The string returned is also recorded in logs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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