osenv

package
v0.9.15 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package osenv provides utilities to read flag-like enviroment variables.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustVar

func MustVar(key string) string

MustVar reads the value of an environment string variable. if it is not set, exits.

func VarWithDefault

func VarWithDefault(key string, d string) string

VarWithDefault reads the value of an environment string variable. if it is not set, returns the provided default value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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