envutil

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package envutil provides utility functions for working with environment variables.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnvAsBool

func GetEnvAsBool(key string, defaultValue bool) bool

GetEnvAsBool retrieves an environment variable as a boolean, returning the default value if not set or invalid

func GetEnvAsInt

func GetEnvAsInt(key string, defaultValue int) int

GetEnvAsInt retrieves an environment variable as an integer, returning the default value if not set or invalid

func GetEnvAsString

func GetEnvAsString(key, defaultValue string) string

GetEnvAsString retrieves an environment variable as a string, returning the default value if 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