dotenv

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(w io.Writer, kvs map[string]string) error

Marshal writes key-value pairs as dotenv-formatted output. Keys are sorted alphabetically for deterministic output.

func Parse

func Parse(r io.Reader) (map[string]string, error)

Parse reads a dotenv-formatted stream and returns key-value pairs. It ignores blank lines and comments (lines starting with #). Quotes (single or double) around values are stripped.

Types

This section is empty.

Jump to

Keyboard shortcuts

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