environ

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package environ provides utilities for parsing environment variables.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(env []string) iter.Seq2[string, string]

Parse returns an iterator over environment variables. It yields each environment variable as a key-value pair. Malformed entries (without an '=' delimiter or with empty key) are skipped.

func ParseAll

func ParseAll() iter.Seq2[string, string]

ParseAll returns an iterator over all environment variables obtained from os.Environ().

Types

This section is empty.

Jump to

Keyboard shortcuts

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