env

package
v0.27.0 Latest Latest
Warning

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

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

Documentation

Overview

Package env implements auxiliary functions to access environment variables values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(
	name string,
	def bool,
) bool

Bool will try to retrieve a boolean value from the environment variable.

func Int

func Int(
	name string,
	def int,
) int

Int will try to retrieve an integer value from the environment variable.

func List

func List(
	name string,
	def []string,
) []string

List will try to retrieve a list of strings values from the environment variable.

func String

func String(
	name,
	def string,
) string

String will try to retrieve a string value from the environment variable.

Types

This section is empty.

Jump to

Keyboard shortcuts

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