env

package
v2.6.4 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

func Del(key string) error

Del removes the environment variable key.

func Get

func Get(key string, def ...any) value.Value

Get returns the value of the environment variable key, falling back to def when it is unset.

func Has

func Has(key string) bool

Has reports whether the environment variable key exists.

func Set

func Set(key string, value string) error

Set sets the environment variable key to value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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