dotenv

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package dotenv provides functionality for parsing dotenv-style configuration files. It supports parsing key-value pairs from a byte slice, handling quoted values, multi-line continuations within quotes, and inline comments starting with #. Values can be enclosed in double or single quotes, with proper escape handling and multiline support for complex configuration scenarios.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(data []byte) (map[string]string, error)

Parse parses dotenv-style configuration and returns a map of key->value. It supports quoted values and multi-line continuations inside quotes. It also supports inline comments starting with #, which are ignored except when inside quotes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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