utils

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MPL-2.0 Imports: 4 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseOrLogError

func CloseOrLogError(ctx context.Context) func(io.Closer)

CloseOrLogError closes the given io.Closer and logs any error.

func GetAnyBoolEnv added in v0.22.0

func GetAnyBoolEnv(ks ...string) bool

GetAnyBoolEnv returns the first non-empty boolean value from the environment variables.

func GetAnyStringEnv added in v0.22.0

func GetAnyStringEnv(ks ...string) string

GetAnyStringEnv returns the first non-empty string value from the environment variables.

Types

This section is empty.

Jump to

Keyboard shortcuts

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