os

package
v0.0.0-...-d17f45c Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnv

func GetEnv(key, defaultValue string) string

GetEnv retrieves the value of an environment variable having the specified key. If the value is empty string, a specified default is returned instead.

func MustGetEnv

func MustGetEnv(key string) string

MustGetEnv retrieves the value of an environment variable having the specified key, panic if key not set

Types

This section is empty.

Jump to

Keyboard shortcuts

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