env

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 2 Imported by: 3

Documentation

Overview

Package env implements the functions, types, and interfaces for the module.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnv

func GetEnv(key string) string

GetEnv retrieves the value of an environment variable with the given key.

func SetEnv

func SetEnv(key, value string) error

SetEnv sets an environment variable with the given key and value. The key is converted to uppercase before setting the environment variable.

func Var

func Var(vv ...string) string

Var constructs a string by joining the given string slices with underscores and converting to uppercase.

Types

This section is empty.

Jump to

Keyboard shortcuts

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