os

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 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 GetEnvInt added in v0.4.0

func GetEnvInt(key string, defaultValue int) int

GetEnvInt retrieves the value of an environment variable having the specified key. If the value is empty string, or cannot parse as an int, a specified default is returned instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

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